Allow default value for node env

This commit is contained in:
prescientmoon 2024-12-04 17:04:53 +01:00
parent 3982ec6e4f
commit e680bf66d4
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4

View file

@ -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}`)