diff --git a/src/App.tsx b/src/App.tsx index 2d2a30a8..67386d6f 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -15,6 +15,7 @@ import DonateButton from "@/components/DonateButton"; import { AdBlockDetector } from "@/components/AdBlockDetector"; import Navbar from "@/components/Navbar"; import Seo from "@/components/Seo"; +import { STATUS_PAGE_URL } from "@/lib/site"; // Routes that should never be indexed by search engines. const PRIVATE_ROUTE_PREFIXES = ['/admin', '/account', '/analytics', '/creator-packs/manage', '/partners/dashboard', '/oauth/consent']; @@ -86,8 +87,6 @@ const PartnerDashboard = lazy(() => import("@/pages/PartnerDashboard")); const OAuthConsent = lazy(() => import("@/pages/OAuthConsent")); const PartnerDocs = lazy(() => import("@/pages/PartnerDocs")); const ChibiMaker = lazy(() => import("@/pages/ChibiMaker")); -const Status = lazy(() => import("@/pages/Status")); - const LoadingFallback = ({ message = "Loading..." }: { message?: string }) => (
@@ -95,6 +94,16 @@ const LoadingFallback = ({ message = "Loading..." }: { message?: string }) => (
); +// The live status page is Uptime Kuma's own page, so /status hands visitors +// over to it instead of rendering a second copy. +const StatusRedirect = () => { + useEffect(() => { + window.location.replace(STATUS_PAGE_URL); + }, []); + + return ; +}; + // Marks that a signed-in user has already been auto-redirected from the // homepage to /resources during the current browser session. Kept in // sessionStorage so the redirect happens once per session. @@ -246,7 +255,7 @@ const App = () => { } /> } /> } /> - } /> + } /> } /> } /> } />