Replies: 1 comment 7 replies
-
Are you try to self-host or are you trying to get a development environment working? |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
On a fresh setup, i forked and cloned the repo, and followed instructions in the readme, and made a .env file copied from .env.development, as well as set up docker and every thing seemed fine.
The problem is when I run command 'yarn dev' and go to specified port where project is running, i.e. 3000, page won't load and the terminal console in IDE shows this:
│ ✓ Compiled /api/auth/[...nextauth] in 333ms (241 modules)
│ GET /api/auth/error?error=Configuration 302 in 973ms
│ [next-auth][error][NO_SECRET]
│ https://next-auth.js.org/errors#no_secret
I tried console.log(process.env.SECRET_PASSWORD) in [...nextauth].ts to check if there is some problem loading these variables but it was able to print these:
│ ✓ Compiled /api/auth/[...nextauth] in 333ms (241 modules)
│ abcdef1234567890abcdef1234567890
│ GET /api/auth/error?error=Configuration 302 in 973ms
│ [next-auth][error][NO_SECRET]
│ https://next-auth.js.org/errors#no_secret
I also tried changing the variable name to NEXTAUTH_SECRET everywhere in project, but it still gave me same error.
What am I missing? or am I doing something wrong? This is going to be my first Open source working project, please help!
Beta Was this translation helpful? Give feedback.
All reactions