Invalid environment variables
❌ Invalid environment variables: { ENCRYPTION_KEY: [ 'Invalid input' ] } /node_modules/@t3-oss/env-nextjs/dist/index.mjs:1
11 Replies
remove one of the set of quotes around that encryption key
did but still same error
Error message suggests an error on line 4, or when parsing the file. Double check the original
.env
file for extra spaces, etc.What?
I don't have any spaces in encryption key
Try with:
still same error
I'd suggest then you remove keys from your .env file until it stops throwing errors, as something there is formatted incorrectly or is otherwise invalid.
Also, did you try with
'utf8'
as well?yeah