next-learn
next-learn copied to clipboard
chapter 15 : how to set AUTH_SECRET and url on vercel.app
the chapter 15 has no mid check point. I finish and check it. on http://localhost:3000/dashboard it works well, Bu;t I publish and test on https://nextjs-dashboard2-plum.vercel.app/login it can't login In my pc, I set AUTH_SECRET and url how to do on vercel.app
https://vercel.com/docs/projects/environment-variables#preview-environment-variables says: Changes to Environment Variables are not applied to previous deployments, they only apply to new deployments.
chapter 15 let's go vercel with https://vercel.com/docs/projects/environment-variables do I set auth_secret enough? I think we need a public key and private key Is there any tutorial about it?
I add AUTH_SECRET , but when login ,it's 404
I have the same problem. I added AUTH_SECRET to the progect in versel.app, but i still can't login in deployment. https://vercel.com/ivans-projects-9f0ecf4e/next-example https://next-example-ivans-projects-9f0ecf4e.vercel.app
I had the same issue which I solved somehow by editing AUTH_SECRET and redeploying the application a couple of times. Not a real solution., though... 🤔 In case, you'd like to double-check: https://next-dashboard-app-biznezzit.vercel.app/
@liwenz interesting 🤔 are you still experiencing this issue?
also I have problem with this auth, in local host works well but in vercel host I receive 405 error.
error: Failed to load resource: the server responded with a status of 405 ()
I had the same issue which I solved somehow by editing AUTH_SECRET and redeploying the application a couple of times. Not a real solution., though... 🤔 In case, you'd like to double-check: https://next-dashboard-app-biznezzit.vercel.app/
Hi @biznezzit I have the same error, could you fix it?, i get 405 status, i added AUTH_SECRET, and redeploy, but I still have the same mistake :(, same thing that happened to @amirrahemi01
When you make changes to your environment variables, you need to redeploy your project because Vercel reads these variables only during the initial deployment. Any newly added environment variables won't be recognized by Vercel until you redeploy your project.
https://github.com/orgs/vercel/discussions/6981
When you make changes to your environment variables, you need to redeploy your project because Vercel reads these variables only during the initial deployment. Any newly added environment variables won't be recognized by Vercel until you redeploy your project.
I confirmed can login after redeploy my project, thanks heaps!