Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix: add default node_env variable

Andras Bacsai14201f4052c2
diff --git a/apps/api/src/jobs/deployApplication.ts b/apps/api/src/jobs/deployApplication.ts
index 7970ab488d..bcdb23d9b4 100644
--- a/apps/api/src/jobs/deployApplication.ts
+++ b/apps/api/src/jobs/deployApplication.ts
@@ -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) {