how to set NEXTAUTH_URL environment variable in Cloudflare deploy. #8195
Unanswered
oyeon-kwon
asked this question in
Help
Replies: 2 comments
-
|
It looks like this issue did not receive any activity for 60 days. It will be closed in 7 days if no further activity occurs. If you think your issue is still relevant, commenting will keep it open. Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
You can deploy to a preview environment with Cloudflare Pages and then your url would be You can then deploy with: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Question 💬
I deployed the app to cloudflare using next auth. Like vercel, cloudflare provides a preview deployment, where the url is set randomly. (ex. https://2cc1cc59.na-lab.pages.dev).
So even if I set the NEXTAUTH_URL environment variable, I get 404 [CLIENT_FETCH_ERROR]
return an error.
I recognized through the official documentation (https://next-auth.js.org/deployment) that NEXTAUTH_URL does not have to be entered when distributing to vercel and netlify.
However, I am curious about how to enter the NEXTAUTH_URL environment variable in cloudflare.
How to reproduce ☕️
https://2cc1cc59.na-lab.pages.dev/
Contributing 🙌🏽
Yes, I am willing to help answer this question in a PR
Beta Was this translation helpful? Give feedback.
All reactions