process.env behaviour #5649
Unanswered
yasinosman
asked this question in
General
Replies: 1 comment 1 reply
-
I believe this should be working in the latest Parcel 2 nightlies. What version are you using? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, i am trying to use .env file for my project built with parcel. What i am curious about is that does parcel detect changes in .env files after build ? Or should it be?
Think of this example: I build the project using a script like this in a computer:
"build": "parcel build --no-content-hash --no-source-maps index.html --public-url ./",
and i move the build folder to another computer which contains a different
.env
file. But parcel seems to get information from the first .env file. So i have to change .env file between two computers and rebuild every time.I want to know if this is an expected behavior or not ?
Beta Was this translation helpful? Give feedback.
All reactions