Skip to content
Discussion options

You must be logged in to vote

there is an ongoing effort to decouple the core of nextauth in a way that would let you create your own wrapper like this file that won't rely on that variable

https://github.com/nextauthjs/next-auth/blob/beta/src/next/index.ts

See #2294

it's basically done, just not documented yet...

Not sure about your side question. haven't tested it, but I would assume it would just work. the next config env variables are inlined build time AFAIK, but nothing else is different.

https://nextjs.org/docs/api-reference/next.config.js/environment-variables

Next.js will replace process.env.customKey with 'my-value' at build time

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@jonioni
Comment options

@balazsorban44
Comment options

@jonioni
Comment options

@balazsorban44
Comment options

@jonioni
Comment options

Answer selected by jonioni
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants