fix: allow landing page to be viewed without authentication

- Remove automatic redirect from "/" to login/dashboard
- Allow everyone to view the hackathon landing page
- Users can still click "Daftar Sekarang" to go to login

This fixes the issue where the landing page immediately redirected to login.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Maulana Sodiqin
2025-11-25 11:01:41 +07:00
co-authored by Claude
parent 400daea60f
commit 7404afe466
2 changed files with 3 additions and 10 deletions
+1 -2
View File
@@ -53,9 +53,8 @@ export const middleware = async ({ request }: LoaderFunctionArgs) => {
return null;
}
// Public routes - redirect to dashboard if already authenticated
// Public routes - allow everyone to view the landing page
if (mappingPublicRoutes.includes(pathname)) {
if (supabaseSession) return redirect('/dashboard');
return null;
}