Clerk
Last updated
Last updated
When using Clerk with Sherpa.sh you there are a few caveats to be aware of. Because Sherpa.sh is a serverful environment where your app runs inside of a doctor container, your application is going to see localhost
whenever it queries your hostname.
This means you have to explicitly tell clerk the return URLs in your environment settings to match the domain that you're using with sherpa.sh
You need to set these on any project using Clerk
NEXT_PUBLIC_CLERK_SIGN_IN_FORCE_REDIRECT_URL
NEXT_PUBLIC_CLERK_SIGN_UP_FORCE_REDIRECT_URL
NEXT_PUBLIC_CLERK_SIGN_IN_FALLBACK_REDIRECT_URL
NEXT_PUBLIC_CLERK_SIGN_UP_FALLBACK_REDIRECT_URL
Typically, these can all be the same value, and that value is usually the homepage of your application. But this will all depend on your particular clerk, set up in your application.
If you need help with your setup, we will help you get your application deployed free of charge. Just open a ticket with us in Discord: