How to load .env variables in my zx script? #792
Answered
by
antongolub
codenoobforreal
asked this question in
Help needed
-
let's say I have a .env file in my project root and I want to get my environment variables. |
Beta Was this translation helpful? Give feedback.
Answered by
antongolub
May 5, 2024
Replies: 2 comments 5 replies
-
zx uses |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
codenoobforreal
-
Node now has support for |
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
zx uses
process.env
object by reference, so you are able to modify this value in any convenient way. For example, with dotenv.