From e680bf66d429220410b6fb5c86894da0740e545f Mon Sep 17 00:00:00 2001 From: prescientmoon Date: Wed, 4 Dec 2024 17:04:53 +0100 Subject: [PATCH] Allow default value for node env --- build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.js b/build.js index c59b790..0ba5e0f 100644 --- a/build.js +++ b/build.js @@ -5,7 +5,7 @@ import * as fs from 'fs' const serve = process.env.ESBUILD_SERVE === '1' const baseurl = process.env.ESBUILD_BASEURL || '' -const nodeEnv = process.env.NODE_ENV +const nodeEnv = process.env.NODE_ENV || 'production' const isProd = nodeEnv !== 'development' console.log(`Building with baseurl ${baseurl}`)