diff --git a/src/renderer/public/__debug_proxy/index.html b/src/renderer/public/__debug_proxy/index.html new file mode 100644 index 000000000..97dc7f3b2 --- /dev/null +++ b/src/renderer/public/__debug_proxy/index.html @@ -0,0 +1,68 @@ + + + + + + + + + + + + + Follow + + + + +
+ +
+
+
+
+
+ + diff --git a/src/renderer/src/modules/app/EnvironmentIndicator.tsx b/src/renderer/src/modules/app/EnvironmentIndicator.tsx index 361b6704d..9d2ae92c8 100644 --- a/src/renderer/src/modules/app/EnvironmentIndicator.tsx +++ b/src/renderer/src/modules/app/EnvironmentIndicator.tsx @@ -6,17 +6,21 @@ import { TooltipTrigger, } from "@renderer/components/ui/tooltip" -export const EnvironmentIndicator = () => ( - - -
- {import.meta.env.MODE} -
-
- - -
{JSON.stringify({ ...env }, null, 2)}
-
-
-
-) +export const EnvironmentIndicator = () => { + const show = !import.meta.env.PROD || globalThis["__DEBUG_PROXY__"] + if (!show) return null + return ( + + +
+ {import.meta.env.MODE} +
+
+ + +
{JSON.stringify({ ...env }, null, 2)}
+
+
+
+ ) +} diff --git a/src/renderer/src/pages/(main)/layout.tsx b/src/renderer/src/pages/(main)/layout.tsx index ee1cffc6f..052c7dfd2 100644 --- a/src/renderer/src/pages/(main)/layout.tsx +++ b/src/renderer/src/pages/(main)/layout.tsx @@ -50,7 +50,7 @@ export function Component() { {ELECTRON && } - {!import.meta.env.PROD && } +