How to build based on staging spa using dotenv
-
I am using quasar build, this builds a copy based in .env.production but I need another build with .env.stage. Is there any way I can achieve it?
-
@Christal Use the QEnv app-extension instead – it’s less opinionated than the dotenv wrapper
https://www.npmjs.com/package/@quasar/quasar-app-extension-qenv -
Thanks @Hawkeye64 . But I need to separate below data in 3 different files similar to dotenv, is it possible to do so using QENV?
{ "development": { "ENV_TYPE": "Running Development", "ENV_DEV": "Development" }, "production": { "ENV_TYPE": "Running Production", "ENV_PROD": "Production" }, "test": { "ENV_TYPE": "Running Test", "ENV_Test": "Test" } }
-
@Christal Yes, with QEnv app-ext you can have unlimited. You can also combine.
-
Is there any sample? @Hawkeye64
-