Skip to content

Chapter 15 Auth get "404: This page could not be found." after deploying it on Vercel #1004

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
lilkev2020 opened this issue Feb 12, 2025 · 2 comments

Comments

@lilkev2020
Copy link

Image
but works on localhost:3000
Does anyone experience the same issue?

@lilkev2020
Copy link
Author

Image
error message in log look like this

@Kamino-Ryo
Copy link

Kamino-Ryo commented Feb 12, 2025

@lilkev2020
Hi. You need to set the environment variable AUTH_SECRET in the Vercel administration screen.

For auth to work in production, you'll need to update your environment variables in your Vercel project too. Check out this guide on how to add environment variables on Vercel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants