Hi, How do I ensure that the variables in .env are...
# general
a
Hi, How do I ensure that the variables in .env are properly loaded before I read them (I write to .env during runtime)? As of now, I get undefined.
l
Not a lot of context there, but assuming you're talking about the same .env file as I'm thinking of: .env isn't a Pulumi file. It's used by convention in various technologies to set environment variables during startup. If you're writing to it during runtime, it won't do anything in the same runtime. You could source it while starting new processes or shells. Either way, it's not a particularly Pulumi-related problem.
👍 1
a
I see, thank you for your reply, much appreciated 🙂