Merge pull request '🚨 fix: resolve linting errors' (#5) from fix/lint into main
All checks were successful
Sync to GitHub / sync (push) Successful in 7s
All checks were successful
Sync to GitHub / sync (push) Successful in 7s
Reviewed-on: #5
This commit is contained in:
@ -8,7 +8,7 @@ const page = async () => {
|
||||
try {
|
||||
const data = await backendFetch("status");
|
||||
console.log(data);
|
||||
} catch (_) {
|
||||
} catch {
|
||||
isDown = true;
|
||||
}
|
||||
if (!isDown) redirect("/");
|
||||
|
||||
@ -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" });
|
||||
|
||||
|
||||
@ -18,8 +18,8 @@ const StatusIndex = () => {
|
||||
Service is temporarily unavailable
|
||||
</h1>
|
||||
<p className="text-sm text-neutral-300 mt-2">
|
||||
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.
|
||||
</p>
|
||||
|
||||
@ -42,7 +42,7 @@ export const backendFetch = async (path: string, options: RequestInit = {}) => {
|
||||
}
|
||||
|
||||
return resJson;
|
||||
} catch (error) {
|
||||
} catch {
|
||||
redirect("/status?reason=backend-unreachable");
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user