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
I verified that the issue exists in Next.js canary release
Provide environment information
win11
What browser are you using? (if relevant)
Chrome Engine Brave
How are you deploying your application? (if relevant)
No response
Describe the Bug
running the dev script on a new create-next-app
using .env.local
NEXT_PUBLIC_ANALYTICS_ID=abcdefghijk$
Add a Dollar $ symbol anywhere in the value causes
error - Failed to load env from C:\Users\admin\Documents\myapp\.env.local TypeError: Cannot read properties of undefined (reading 'split')
at C:\Users\admin\Documents\myapp\node_modules\@next\env\dist\index.js:1:311
at Array.reduce (<anonymous>)
at _interpolate (C:\Users\admin\Documents\myapp\node_modules\@next\env\dist\index.js:1:125)
at expand (C:\Users\admin\Documents\myapp\node_modules\@next\env\dist\index.js:1:709)
at processEnv (C:\Users\admin\Documents\myapp\node_modules\@next\env\dist\index.js:1:3638)
at Module.loadEnvConfig (C:\Users\admin\Documents\myapp\node_modules\@next\env\dist\index.js:1:4443)
at Object.loadConfig [as default] (C:\Users\admin\Documents\myapp\node_modules\next\dist\server\config.js:40:21)
at NextServer.loadConfig (C:\Users\admin\Documents\myapp\node_modules\next\dist\server\next.js:114:48)
at NextServer.getServer (C:\Users\admin\Documents\myapp\node_modules\next\dist\server\next.js:120:39)
at NextServer.prepare (C:\Users\admin\Documents\myapp\node_modules\next\dist\server\next.js:96:35)
Expected Behavior
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
info - Loaded env from C:\Users\admin\Documents\env-test\.env.local
wait - compiling...
event - compiled client and server successfully in 4.7s (170 modules)
To Reproduce
running the dev script on a new create-next-app
using .env.local
NEXT_PUBLIC_ANALYTICS_ID=abcdefghijk$
Add a Dollar $ symbol anywhere in the value causes
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
win11
What browser are you using? (if relevant)
Chrome Engine Brave
How are you deploying your application? (if relevant)
No response
Describe the Bug
running the dev script on a new create-next-app
using .env.local
NEXT_PUBLIC_ANALYTICS_ID=abcdefghijk$
Add a Dollar $ symbol anywhere in the value causes
Expected Behavior
To Reproduce
running the dev script on a new create-next-app
using .env.local
NEXT_PUBLIC_ANALYTICS_ID=abcdefghijk$
Add a Dollar $ symbol anywhere in the value causes
The text was updated successfully, but these errors were encountered: