I’m using Auth0 with a Next.js application, deployed on Render.
The login works fine on the main domain: https://testproject-com-next.onrender.com
But when I try to log in from a PR deployment, for example: https://testproject-com-pr-80.onrender.com
— the login fails or redirects incorrectly, and I can’t complete authentication.
The PR deployment itself is working and reachable, but the login doesn’t succeed.
when i create my PR preview render will like this.
Thank you for posting your question. When you make a build based on the PR, do you change the APP_BASE_URL to match the “new” domain that your application is hosted on?