Skip to content

Lightweight server monitoring with historical data, docker stats, and alerts.

refactor(site): use globalThis to access BESZEL for base path

henrygdfb4e93f09811
diff --git a/internal/site/src/components/router.tsx b/internal/site/src/components/router.tsx
index 5c54f6137..93808c049 100644
--- a/internal/site/src/components/router.tsx
+++ b/internal/site/src/components/router.tsx
@@ -15,7 +15,7 @@ const routes = {
* The base path of the application.
* This is used to prepend the base path to all routes.
*/
-export const basePath = BESZEL?.BASE_PATH || ""
+export const basePath = globalThis.BESZEL?.BASE_PATH || ""
/**
* Prepends the base path to the given path.