mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-12-18 20:04:17 +01:00
Lazily load auth to reduce chunk size
This commit is contained in:
parent
40b49cc96e
commit
7344b3a1a7
@ -1,15 +1,17 @@
|
||||
import { Suspense } from "react";
|
||||
import { Suspense, lazy } from "react";
|
||||
import { Routes, Route } from "react-router-dom";
|
||||
import { AppProviders } from "@app/components/AppProviders";
|
||||
import { AppLayout } from "@app/components/AppLayout";
|
||||
import { LoadingFallback } from "@app/components/shared/LoadingFallback";
|
||||
import Landing from "@app/routes/Landing";
|
||||
import Login from "@app/routes/Login";
|
||||
import Signup from "@app/routes/Signup";
|
||||
import AuthCallback from "@app/routes/AuthCallback";
|
||||
import InviteAccept from "@app/routes/InviteAccept";
|
||||
import Onboarding from "@app/components/onboarding/Onboarding";
|
||||
|
||||
// Lazy-load auth routes - only loaded when user navigates to them
|
||||
const Landing = lazy(() => import("@app/routes/Landing"));
|
||||
const Login = lazy(() => import("@app/routes/Login"));
|
||||
const Signup = lazy(() => import("@app/routes/Signup"));
|
||||
const AuthCallback = lazy(() => import("@app/routes/AuthCallback"));
|
||||
const InviteAccept = lazy(() => import("@app/routes/InviteAccept"));
|
||||
|
||||
// Import global styles
|
||||
import "@app/styles/tailwind.css";
|
||||
import "@app/styles/cookieconsent.css";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user