Skip to content

Commit c3c034e

Browse files
MuhsinunCclaude
andcommitted
fix: add fallbackRedirectUrl to auth pages
Clerk dashboard settings were overriding env vars, causing redirect to /login (404) after sign-in. Added explicit fallbackRedirectUrl prop to SignIn and SignUp components to ensure redirect to /dashboard. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent c9cdf7e commit c3c034e

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/app/sign-in/[[...sign-in]]/page.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export default function SignInPage() {
44
return (
55
<div className="flex min-h-screen items-center justify-center bg-gray-50 dark:bg-gray-900">
66
<SignIn
7+
fallbackRedirectUrl="/dashboard"
78
appearance={{
89
elements: {
910
rootBox: 'mx-auto',

src/app/sign-up/[[...sign-up]]/page.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export default function SignUpPage() {
44
return (
55
<div className="flex min-h-screen items-center justify-center bg-gray-50 dark:bg-gray-900">
66
<SignUp
7+
fallbackRedirectUrl="/dashboard"
78
appearance={{
89
elements: {
910
rootBox: 'mx-auto',

0 commit comments

Comments
 (0)