milliHQ/terraform-aws-next-js

NextAuth CLIENT_FETCH_ERROR , NEXTAUTH_URL

ochoalopezalfredo opened this issue · 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