You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have not already reached out to Clerk support via email or Discord (if you have, no need to open an issue here)
This issue is not a question, general help request, or anything other than a bug report directly related to Clerk. Please ask questions in our Discord community: https://clerk.com/discord.
This only works because I added the basePath configured in next.config.mjs to app/page.tsx to the redirectUrl props. But the this should not be needed, and the basePath should be taken into account automatically.
To the best of our knowledge Next.js doesn't expose the basePath option to packages like Clerk so we can't support it. We'll give this some 30min or so to see if we could access it. Still, if we could do, it would be a breaking change.
For the time being I do recommend settings your base path in an environment variable or constant and use those across the config and paths.
Preliminary Checks
Reproduction / Replay Link
https://github.com/xixixao/bug-clerk-next-redirectUrl
Publishable key
pk_test_cHJvcGVyLXdoaXBwZXQtNzcuY2xlcmsuYWNjb3VudHMuZGV2JA
Description
npm run dev
This only works because I added the
basePath
configured innext.config.mjs
toapp/page.tsx
to theredirectUrl
props. But the this should not be needed, and thebasePath
should be taken into account automatically.Environment
The text was updated successfully, but these errors were encountered: