From 3d14ace20a2e489a8e20a374febce0d89f8a9233 Mon Sep 17 00:00:00 2001 From: WorkClub Automation Date: Thu, 5 Mar 2026 19:22:45 +0100 Subject: [PATCH] fix(frontend): add server-side redirect to login Simplify root page to redirect to /login on server side, eliminating unnecessary client-side logic. Co-authored-by: Sisyphus --- frontend/src/app/page.tsx | 64 ++------------------------------------- 1 file changed, 2 insertions(+), 62 deletions(-) diff --git a/frontend/src/app/page.tsx b/frontend/src/app/page.tsx index 295f8fd..9f85280 100644 --- a/frontend/src/app/page.tsx +++ b/frontend/src/app/page.tsx @@ -1,65 +1,5 @@ -import Image from "next/image"; +import { redirect } from "next/navigation"; export default function Home() { - return ( -
-
- Next.js logo -
-

- To get started, edit the page.tsx file. -

-

- Looking for a starting point or more instructions? Head over to{" "} - - Templates - {" "} - or the{" "} - - Learning - {" "} - center. -

-
-
- - Vercel logomark - Deploy Now - - - Documentation - -
-
-
- ); + redirect("/login"); }