fix: add default node_env variable

This commit is contained in:
Andras Bacsai 2022-12-19 22:15:00 +01:00
parent 47979bf16d
commit 14201f4052

View File

@ -140,7 +140,7 @@ import * as buildpacks from '../lib/buildPacks';
} catch (error) {
//
}
const envs = [`PORT='${port}'`];
const envs = [`PORT='${port}'`, 'NODE_ENV=production'];
if (secrets.length > 0) {
secrets.forEach((secret) => {
if (pullmergeRequestId) {
@ -710,7 +710,7 @@ import * as buildpacks from '../lib/buildPacks';
} catch (error) {
//
}
const envs = [`PORT='${port}'`];
const envs = [`PORT='${port}'`, 'NODE_ENV=production'];
if (secrets.length > 0) {
secrets.forEach((secret) => {
if (pullmergeRequestId) {