From 50d6188e17e99e282ded4f6f5111f18bd763be2f Mon Sep 17 00:00:00 2001 From: Coder-soft Date: Sun, 18 Oct 2026 22:36:00 +0500 Subject: [PATCH] feat(status): redirect /status to the public status page The footer already links to status.codersoft.xyz, so /status hands visitors over instead of rendering a second copy. The in-app page and its /api/uptime feed stay in the repo, unused. --- src/App.tsx | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) 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 = () => { } /> } /> } /> - } /> + } /> } /> } /> } />