feat(web): prepare the fluxer.com domain migration (#2952)

This commit is contained in:
Hampus authored and GitHub committed 2026-09-25 13:43:34 +02:00
1 parent e62ae77643
commit 6730a242db
223 files changed
+13412 -2669

No files matched your search

+1
View File
@@ -4,6 +4,7 @@ import {marketingUrl} from '@app/features/messaging/utils/MessagingUrlUtils';
export const Routes = {
HOME: '/',
APP: '/app',
LOGIN: '/login',
REGISTER: '/register',
FORGOT_PASSWORD: '/forgot',
@@ -214,7 +214,7 @@ export const RootComponent: React.FC<{children?: React.ReactNode}> = observer(({
) {
return;
}
if (location.pathname === Routes.HOME) {
if (location.pathname === Routes.HOME || location.pathname === Routes.APP) {
return;
}
hasStartedRestoreRef.current = true;
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import {Routes} from '@app/app/Routes';
import {RootComponent} from '@app/app/router/components/RootComponent';
import {NotFoundPage} from '@app/features/app/components/pages/NotFoundPage';
import {getDefaultLandingPath} from '@app/features/navigation/utils/DefaultLandingUtils';
@@ -22,3 +23,9 @@ export const homeRoute = createRoute({
path: '/',
onEnter: () => new Redirect(getDefaultLandingPath()),
});
export const appRoute = createRoute({
getParentRoute: () => rootRoute,
id: 'app',
path: Routes.APP,
onEnter: () => new Redirect(getDefaultLandingPath()),
});
@@ -7,11 +7,12 @@ import {
premiumCallbackRoute,
} from '@app/app/router/routes/AppRoutes';
import {authRouteTree} from '@app/app/router/routes/AuthRoutes';
import {homeRoute, notFoundRoute, rootRoute} from '@app/app/router/routes/RootRoutes';
import {appRoute, homeRoute, notFoundRoute, rootRoute} from '@app/app/router/routes/RootRoutes';
import type {RouteConfig} from '@app/features/platform/components/router/RouterTypes';
const routeTree = rootRoute.addChildren([
homeRoute,
appRoute,
notFoundRoute,
premiumCallbackRoute,
matureContentCheckCallbackRoute,