vite-plugin-html-env
vite-plugin-html-env copied to clipboard
Currently defined env variables not used - on purpose?
Hi!
I just noticed that environment variables already defined in the shell (i.e. not dotnet files) are ignored when running vite build
Is this on purpose?
Yes, I ignored the environment variables defined in the shell, I thought it would be better to declare the full environment variables in a file beforehand.
Hmm... unless I'm missing something, this makes it not so useful in many (most?) production situations where env vars are set through the environment, not from a .env file? Maybe I'm misunderstanding though.
seconding @jmwohl here
Version 1.2.8 already supports system environment variables. @vovimayhem @jmwohl @SphinxKnight