Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Clerk redirect #40

Closed
njdowdy opened this issue Sep 15, 2023 · 1 comment
Closed

Fix: Clerk redirect #40

njdowdy opened this issue Sep 15, 2023 · 1 comment

Comments

@njdowdy
Copy link

njdowdy commented Sep 15, 2023

Clerk was giving me a 404 on redirect to '/' (and other routes) after trying to use OAuth.

The fix was to change the folder structure for Clerk sign-in and sign-up to include a catch-all segment.

The following replacements needed to be made:
src/app/sign-in/page.tsx -> src/app/sign-in/[[...sign-in]]/page.tsx
src/app/sign-up/page.tsx -> src/app/sign-up/[[...sign-up]]/page.tsx

See the Clerk quick start for more info: https://clerk.com/docs/quickstarts/nextjs#build-your-sign-in-page

@nicoalbanese
Copy link
Owner

Thanks - have updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants