Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/fix-define'
Browse files Browse the repository at this point in the history
  • Loading branch information
pirxpilot committed Oct 31, 2023
2 parents 18650cf + 1b7d714 commit cf0189e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function normalizeOptions(options = {}, metalsmith, debug) {
const isProd = metalsmith.env('NODE_ENV') !== 'development'
const define = Object.entries(metalsmith.env()).reduce((acc, [name, value]) => {
// see notes at https://esbuild.github.io/api/#define, string values require explicit quotes
acc[`process.env.${name}`] = typeof value === 'string' ? `'${value}'` : value
acc[`process.env.${name}`] = `'${value}'`
return acc
}, {})

Expand Down

0 comments on commit cf0189e

Please sign in to comment.