Next.js Discord

Discord Forum

Auth0 Base Url for preview deployments

Answered
Vespid wasp posted this in #help-forum
Open in Discord
Vespid waspOP
Hi, I'm currently using auth0 on my site and deploying with vercel. However auth0 requires you to put a base url as your env variable. I've done this in my vercel settings and it works fine for production but as you know preview deployments have their own unique url, and since my env variable is set to my apps production domain, the auth doesn't work in my preview deployments which is really annoying. Is there any fix for this? I'm also using the app router incase that's important.

1 Reply