Closed YohannParis closed 3 years ago
I'll add @mj3cheun here as he previously ran into issues with test cases not working using this approach. I think the dev build flag should prevent this. But adding Manfred to confirm.
Tests have been disabled so 😈
But even if it hasn't this is a really good idea, the .env
with blank values fools the tests into thinking the env variables are there, but the real values are in .env.local
which can be blocked by .gitignore
without issue. Solves the problem completely. Thanks!
Just confirmed that the env variables are being pulled from the .env.local
which is great. Only thing i would add is that the README and possibly the confluence should be updated with the new procedure.
Just confirmed that the env variables are being pulled from the
.env.local
which is great. Only thing i would add is that the README and possibly the confluence should be updated with the new procedure.
Thanks @mj3cheun, I also update the confluence page: https://confluence.uncharted.software/display/ASKE/Configurations
Why
The current
.env
has to be carefully ignored between each branch, which is prone to error.What
.gitignore
already include.env.local
esbuild.js
to select.env.local
instead of.env
if the--dev
argument is used..env.local
for development.Testing
Copy the confluence environment variables into
.env.local
and revert.env
to the main branch version. The app should load as usual.