Skip to content

Commit

Permalink
fix(todisk): use correct build env
Browse files Browse the repository at this point in the history
  • Loading branch information
cossssmin committed Apr 14, 2021
1 parent b2cebfb commit 52294ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generators/output/to-disk.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const Plaintext = require('../plaintext')
const render = require('./to-string')

module.exports = async (env, spinner, config) => {
process.env.NODE_ENV = get(config, 'maizzle.env', 'local')
process.env.NODE_ENV = env || 'local'

if (isEmpty(config)) {
config = await Config.getMerged(env).catch(error => {
Expand Down

0 comments on commit 52294ac

Please sign in to comment.