diff --git a/src/main.tsx b/src/main.tsx index b3d2cf5..0093d35 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -7,6 +7,11 @@ import { SettingsProvider } from "./provider/SettingsContext.tsx"; import { UserProvider } from "./provider/UserContext.tsx"; import { router } from "./router.tsx"; +// Redirect to main domain for non-development environments +const MAIN_SITE = "app.r10progress.com"; +if (!import.meta.env.DEV && location.host !== MAIN_SITE) { + location.replace(MAIN_SITE + location.pathname); +} ReactDOM.createRoot(document.getElementById("root")!).render(