You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browsers:
Google
npmPackages:
next: 15.4.5next-auth: ^5.0.0-beta.29
react: 18.3.1
I followed the previous online solution and added NEXTAUTH_URL=http://<my domain name>:3000/auth to the environment variable configuration of the production environment, but it didn't work
When I run it locally, everything can be done with login and registration, but when I run it on a cloud server, the console throws 1 error when rendering the page.
Now I don't know if it's a problem with my environment variable configuration, I currently use github authorization to log in the most times, and then github needs me to provide some configuration information, here is the configuration information
How to reproduce
Clicking the login button triggers There is a problem with the server configuration.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm a code novice,here is my question
Environment
I followed the previous online solution and added

NEXTAUTH_URL=http://<my domain name>:3000/auth
to the environment variable configuration of the production environment, but it didn't workWhen I run it locally, everything can be done with login and registration, but when I run it on a cloud server, the console throws 1 error when rendering the page.

Here is my nextauth configuration
Now I don't know if it's a problem with my environment variable configuration, I currently use github authorization to log in the most times, and then github needs me to provide some configuration information, here is the configuration information

How to reproduce
Clicking the login button triggers
There is a problem with the server configuration.
Expected behavior
Login and registration should work
Beta Was this translation helpful? Give feedback.
All reactions