next auth on vercel its showing me server error. "There is a problem with the server configuration. Check the server logs for more information." #10930
I work with NextJS, next-auth and use NestJS with ready-made routes as a backend API. When I run it locally, everything works with login and registration, but when I run it on versel, 3 errors are thrown in the console when rendering the page.
On the forums, in almost all similar cases, the error says "no-secret-key", but I just get "There is a problem with the server configuration". Then the question arises whether it is necessary to use this secret-key if all actions take place on the backend and whether it will help?
Environment
Reproduction URL
https://github.com/OlegTernovuy/TechStop/tree/Setting-NextAuth
Describe the issue
I work with NextJS, next-auth and use NestJS with ready-made routes as a backend API. When I run it locally, everything works with login and registration, but when I run it on versel, 3 errors are thrown in the console when rendering the page.
On the forums, in almost all similar cases, the error says "no-secret-key", but I just get "There is a problem with the server configuration". Then the question arises whether it is necessary to use this secret-key if all actions take place on the backend and whether it will help?
How to reproduce
Visit https://tech-stop-qgyz-git-setting-nextauth-olegternovuys-projects.vercel.app?_vercel_share=nAwxJaEhZBFT7s7VODGyvgeQT1CxmlBn
Expected behavior
Login and registration should work