Allow default value for node env
This commit is contained in:
parent
3982ec6e4f
commit
e680bf66d4
2
build.js
2
build.js
|
@ -5,7 +5,7 @@ import * as fs from 'fs'
|
||||||
|
|
||||||
const serve = process.env.ESBUILD_SERVE === '1'
|
const serve = process.env.ESBUILD_SERVE === '1'
|
||||||
const baseurl = process.env.ESBUILD_BASEURL || ''
|
const baseurl = process.env.ESBUILD_BASEURL || ''
|
||||||
const nodeEnv = process.env.NODE_ENV
|
const nodeEnv = process.env.NODE_ENV || 'production'
|
||||||
const isProd = nodeEnv !== 'development'
|
const isProd = nodeEnv !== 'development'
|
||||||
|
|
||||||
console.log(`Building with baseurl ${baseurl}`)
|
console.log(`Building with baseurl ${baseurl}`)
|
||||||
|
|
Loading…
Reference in a new issue