Open ShayBox opened 1 year ago
+1
I was initially under the impression that this was already how dotenvy operated, but unfortunately had to find out the hard way that environment variables in the build pipeline were not accepted by the dotenv!
macro, as it throws a compiler error when no .env
file is found, even when the environment variable is present.
I use
dotenvy!
for development to load from.env
andenv!
in production to load from regular env (GitHub Workflows), now I have a feature flag to switch between the two but it's very inconvenient and repetitive.Having a macro that falls back to the regular env would be nice.