vite-plugin-html-env icon indicating copy to clipboard operation
vite-plugin-html-env copied to clipboard

Currently defined env variables not used - on purpose?

Open vovimayhem opened this issue 2 years ago • 4 comments

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?

vovimayhem avatar Apr 15 '22 22:04 vovimayhem

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.

lxs24sxl avatar Apr 20 '22 02:04 lxs24sxl

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.

jmwohl avatar Jun 10 '22 21:06 jmwohl

seconding @jmwohl here

SphinxKnight avatar Oct 27 '22 09:10 SphinxKnight

Version 1.2.8 already supports system environment variables. @vovimayhem @jmwohl @SphinxKnight

lxs24sxl avatar May 18 '23 06:05 lxs24sxl