diff --git a/app/(safe-mode-page)/status/page.tsx b/app/(safe-mode-page)/status/page.tsx index c27905e..3e09f2d 100644 --- a/app/(safe-mode-page)/status/page.tsx +++ b/app/(safe-mode-page)/status/page.tsx @@ -8,7 +8,7 @@ const page = async () => { try { const data = await backendFetch("status"); console.log(data); - } catch (_) { + } catch { isDown = true; } if (!isDown) redirect("/"); diff --git a/app/layout.tsx b/app/layout.tsx index ab9cda4..f65b89c 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,7 +1,6 @@ import type { Metadata } from "next"; import { Geist, Geist_Mono, Inter } from "next/font/google"; import "./globals.css"; -import AuthSessionProviderWrapper from "@/shared/providers/AuthSession"; const inter = Inter({ subsets: ["latin"], variable: "--font-sans" }); diff --git a/features/status/index.tsx b/features/status/index.tsx index a8ca445..5b9f3c5 100644 --- a/features/status/index.tsx +++ b/features/status/index.tsx @@ -18,8 +18,8 @@ const StatusIndex = () => { Service is temporarily unavailable

- We're currently experiencing an issue with this service and our team - is working to restore it as quickly as possible. You can still + We're currently experiencing an issue with this service and our + team is working to restore it as quickly as possible. You can still browse other features while we fix the problem. Please check back in a few moments. We appreciate your patience.

diff --git a/shared/helpers/backendFetch.ts b/shared/helpers/backendFetch.ts index bfe592e..7416c03 100644 --- a/shared/helpers/backendFetch.ts +++ b/shared/helpers/backendFetch.ts @@ -42,7 +42,7 @@ export const backendFetch = async (path: string, options: RequestInit = {}) => { } return resJson; - } catch (error) { + } catch { redirect("/status?reason=backend-unreachable"); } };