Replies: 2 comments
-
This is an expected behavior, you need to set |
Beta Was this translation helpful? Give feedback.
-
The thing is every other variable got replaced with final value in the built version. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Question 💬
I've created a basic authentication nextjs app with Next Auth with env configured properly.
The env vars work totally fine with other places except for NEXTAUTH_URL.
Everything works fine, but NextAuth throws a warning.
[next-auth][warn][NEXTAUTH_URL]
And I have to create an env file with NEXTAUTH_URL configured in order to make it the app run.
Is it how the NextAuth should be configured with non-vercel environment?
How to reproduce ☕️
My next.config.js file:
My .env file:
After running
npm run build && npm start
. Everything works fine, but NextAuth throws a warning.[next-auth][warn][NEXTAUTH_URL]
Contributing 🙌🏽
No, I am afraid I cannot help regarding this
Beta Was this translation helpful? Give feedback.
All reactions