terraform-aws-next-js icon indicating copy to clipboard operation
terraform-aws-next-js copied to clipboard

NextAuth CLIENT_FETCH_ERROR , NEXTAUTH_URL

Open ochoalopezalfredo opened this issue 2 years ago • 0 comments

Hello everyone,

Trying to use the NextAuth.js library I encountered the following problem, the environment variables in the .env file are not being reflected correctly in the deploy.

Packages "next": "12", "next-auth": "4.15.2".

Error [next-auth][error][CLIENT_FETCH_ERROR] https://next-auth.js.org/errors#client_fetch_error

If you see CLIENT_FETCH_ERROR make sure you have configured the NEXTAUTH_URL environment variable.

Related Docs https://next-auth.js.org/deployment

so is there any way to add these variables manually to the deploy ? has anyone found a way to fix it ?

thanks in advance

ochoalopezalfredo avatar Dec 26 '22 08:12 ochoalopezalfredo