Open cyrilprevot opened 1 year ago
Yea that would be useful. In the meantime you could try something like this?
export $(cat .env | xargs) && npx trapeze run...
Yes it works like this thx. I hadn't thought of doing that
For reference, Vite uses dotenv
internally to handle this. I call trapeze
from gulp
, so I just configure dotenv
in the gulp
script. However, you could easily use dotenvx run npx trapeze run
instead.
Hi Max!
I would like to use environnement variables defined into my .env file. In my case I'm defining env variable to know which google-services.json file to copy (one for production and one for development).
Maybe I'm doing it the wrong way, idk, but I think it could be useful to have access to .env variables.