diff --git a/src/utils/cordovaProjectHelper.ts b/src/utils/cordovaProjectHelper.ts index d4cf2c7..390062d 100644 --- a/src/utils/cordovaProjectHelper.ts +++ b/src/utils/cordovaProjectHelper.ts @@ -549,6 +549,16 @@ export class CordovaProjectHelper { } } + if (envVars) { + // eslint-disable-next-line no-restricted-syntax + for (const key in envVars) { + // Update process env if the custom key is not existing + if (!process.env.hasOwnProperty(key) || process.env[key] != envVars[key]) { + process.env[key] = envVars[key]; + } + } + } + return env; }