diff --git a/app/(safe-mode-page)/status/page.tsx b/app/(safe-mode-page)/status/page.tsx index 10451bf..c27905e 100644 --- a/app/(safe-mode-page)/status/page.tsx +++ b/app/(safe-mode-page)/status/page.tsx @@ -1,6 +1,18 @@ import StatusIndex from "@/features/status"; +import { backendFetch } from "@/shared/helpers/backendFetch"; +import { redirect } from "next/navigation"; + +const page = async () => { + // Check service status with API call + let isDown = false; + try { + const data = await backendFetch("status"); + console.log(data); + } catch (_) { + isDown = true; + } + if (!isDown) redirect("/"); -const page = () => { return (