Skip to content

Commit

Permalink
Allow default value for node env
Browse files Browse the repository at this point in the history
  • Loading branch information
prescientmoon committed Dec 4, 2024
1 parent 3982ec6 commit e680bf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`)
Expand Down

0 comments on commit e680bf6

Please sign in to comment.