Open Innei opened 10 months ago
I have the same, so annoying! Tried to connect to my MongoDB and found out, that Next.js removes the string from $
until &
mongodb://foobar:xxxx$willgetremovedincludedollarsign&worksfine@example.com...
Sometimes it feels like a pain to use a strong password.
Anyway, the $
can be escaped \$
do double quote "" help to avoid this?
Link to the code that reproduces this issue
https://github.com/Innei/next-env-symbol-reproduction
To Reproduce
dev
Current vs. Expected behavior
The first one is wrapped in single quotes, and the env should not be added to the variable in the terminal. The second one should be inserted into the variable
But currently, all of this is like the second one.
Verify canary release
Provide environment information
Which area(s) are affected? (Select all that apply)
Not sure
Additional context
No response