Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Prune web debug env flags

Manav Rathi0ef242a6deaa
diff --git a/web/apps/ensu/src/pages/chat.tsx b/web/apps/ensu/src/pages/chat.tsx
index 546219eaeb..3e47bb2756 100644
--- a/web/apps/ensu/src/pages/chat.tsx
+++ b/web/apps/ensu/src/pages/chat.tsx
@@ -77,6 +77,7 @@ import {
import { getLuminance, useTheme } from "@mui/material/styles";
import { savedLocalUser } from "ente-accounts/services/accounts-db";
import { openAccountsManagePasskeysPage } from "ente-accounts/services/passkey";
+import { desktopAppVersion } from "ente-base/app";
import { NavbarBase } from "ente-base/components/Navbar";
import { useBaseContext } from "ente-base/context";
import { getKV, removeKV, setKV } from "ente-base/kv";
@@ -737,8 +738,8 @@ const Page: React.FC = () => {
if (Array.isArray(value)) return value[0];
return typeof value === "string" ? value : undefined;
}, [router.isReady, router.query.session]);
- const buildVersion = process.env.NEXT_PUBLIC_ENSU_DESKTOP_VERSION
- ? `v${process.env.NEXT_PUBLIC_ENSU_DESKTOP_VERSION}`
+ const buildVersion = desktopAppVersion
+ ? `v${desktopAppVersion}`
: undefined;
const lastRouteUpdateRef = useRef<{ sessionId?: string; at: number }>({
diff --git a/web/apps/photos/src/pages/_app.tsx b/web/apps/photos/src/pages/_app.tsx
index 7815168c97..55226cd072 100644
--- a/web/apps/photos/src/pages/_app.tsx
+++ b/web/apps/photos/src/pages/_app.tsx
@@ -147,16 +147,7 @@ const App: React.FC<PhotosAppProps> = ({ Component, pageProps }) => {
if (needsFamilyRedirect && savedPartialLocalUser()?.token)
redirectToFamilyPortal();
- // Creating this inline, we need this on debug only and temporarily. Can
- // remove the debug print itself after a while.
- interface NROptions {
- shallow: boolean;
- }
- router.events.on("routeChangeStart", (url: string, o: NROptions) => {
- if (process.env.NEXT_PUBLIC_ENTE_TRACE_RT) {
- log.debug(() => [o.shallow ? "route-shallow" : "route", url]);
- }
-
+ router.events.on("routeChangeStart", () => {
if (needsFamilyRedirect && savedPartialLocalUser()?.token) {
redirectToFamilyPortal();
diff --git a/web/apps/photos/src/pages/index.tsx b/web/apps/photos/src/pages/index.tsx
index 546864babd..c145da705d 100644
--- a/web/apps/photos/src/pages/index.tsx
+++ b/web/apps/photos/src/pages/index.tsx
@@ -44,17 +44,6 @@ const Page: React.FC = () => {
refreshHost();
const currentURL = new URL(window.location.href);
- if (process.env.NEXT_PUBLIC_ENTE_WIP_WASM) {
- // TODO(MR): WASM. Test code. remove.
- // import { file_download_url, HttpClient } from "ente-wasm";
- const { file_download_url, HttpClient } = await import(
- "ente-wasm"
- );
- console.log(file_download_url("https://example.org", 88n));
- const client = new HttpClient("https://api.ente.com");
- console.log(await client.get("/ping"));
- }
-
// Store join album context immediately if present in URL
// This ensures it survives the authentication flow
const joinAlbumParam = currentURL.searchParams.get("joinAlbum");