Skip to content

NextAuth CLIENT_FETCH_ERROR , NEXTAUTH_URL #379

@ochoalopezalfredo

Description

@ochoalopezalfredo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions