nicoalbanese / kirimase

Build full-stack Next.js apps, incredibly fast
https://kirimase.dev
MIT License
2.64k stars 122 forks source link

Fix: Clerk redirect #40

Closed njdowdy closed 1 year ago

njdowdy commented 1 year ago

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 commented 1 year ago

Thanks - have updated