From 25e7c3231a1baeeb1f4f98691774f53f243a7bd7 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Wed, 22 Nov 2023 12:40:12 +0100 Subject: [PATCH 1/2] refs #5815 ci: set custom NODE_ENV in environment --- quasar.config.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/quasar.config.js b/quasar.config.js index cbcbae4dc..4de730515 100644 --- a/quasar.config.js +++ b/quasar.config.js @@ -66,7 +66,9 @@ module.exports = configure(function (/* ctx */) { // publicPath: '/', // analyze: true, // env: {}, - // rawDefine: {} + rawDefine: { + 'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV) + }, // ignorePublicFolder: true, // minify: false, // polyfillModulePreload: true, @@ -79,6 +81,12 @@ module.exports = configure(function (/* ctx */) { viteConf.build.modulePreload = { polyfill: false, }; + + // this.env={ + // 'process.env.NODE_ENV': 'test1', + // NODE_ENV: 'test2' + + // } }, // viteVuePluginOptions: {}, From 6ac89e7aa2e34189aed2d80cee5a14ae65a93d64 Mon Sep 17 00:00:00 2001 From: JAVIER SEGARRA MARTINEZ Date: Mon, 27 Nov 2023 11:57:09 +0000 Subject: [PATCH 2/2] Update quasar.config.js --- quasar.config.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/quasar.config.js b/quasar.config.js index 4de730515..e8f746fd6 100644 --- a/quasar.config.js +++ b/quasar.config.js @@ -81,12 +81,6 @@ module.exports = configure(function (/* ctx */) { viteConf.build.modulePreload = { polyfill: false, }; - - // this.env={ - // 'process.env.NODE_ENV': 'test1', - // NODE_ENV: 'test2' - - // } }, // viteVuePluginOptions: {},