You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have a multiline environment variable like a ecdsa key for JWT usage.
.env.local:
PUBLIC_KEY='-----BEGIN PUBLIC KEY-----
multi-line
-----END PUBLIC KEY-----'
When now logging the environment variable: console.log(process.env.PUBLIC_KEY)
The console output looks like the following: '-----BEGIN PUBLIC KEY-----
Describe the Bug
Only the first line of the environment variable is getting loaded.
Weirdly enough adding the experimental --turbo flag to next dev resolves the issue.
Expected Behavior
The expected behaviour is that the entire variable is loaded and that console.log(process.env.PUBLIC_KEY)
prints
PUBLIC_KEY='-----BEGIN PUBLIC KEY-----
multi-line
-----END PUBLIC KEY-----'
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
The text was updated successfully, but these errors were encountered:
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Verify canary release
Provide environment information
Which area(s) of Next.js are affected? (leave empty if unsure)
No response
Link to the code that reproduces this issue or a replay of the bug
https://github.com/nuntax/next-js-bugreport
To Reproduce
Have a multiline environment variable like a ecdsa key for JWT usage.
.env.local:
When now logging the environment variable:
console.log(process.env.PUBLIC_KEY)
The console output looks like the following:
'-----BEGIN PUBLIC KEY-----
Describe the Bug
Only the first line of the environment variable is getting loaded.
Weirdly enough adding the experimental --turbo flag to next dev resolves the issue.
Expected Behavior
The expected behaviour is that the entire variable is loaded and that
console.log(process.env.PUBLIC_KEY)
prints
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
The text was updated successfully, but these errors were encountered: