Skip to content

Commit

Permalink
Set default NODE_ENV value. (#768)
Browse files Browse the repository at this point in the history
  • Loading branch information
arunoda authored and rauchg committed Jan 16, 2017
1 parent 8767165 commit 6f117ec
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/next-build
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#!/usr/bin/env node

import { resolve, join } from 'path'
import { existsSync } from 'fs'
import parseArgs from 'minimist'
import build from '../server/build'
import { printAndExit } from '../lib/utils'

process.env.NODE_ENV = process.env.NODE_ENV || 'production'

const argv = parseArgs(process.argv.slice(2), {
alias: {
h: 'help'
Expand Down
2 changes: 2 additions & 0 deletions bin/next-dev
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import { existsSync } from 'fs'
import Server from '../server'
import { printAndExit } from '../lib/utils'

process.env.NODE_ENV = process.env.NODE_ENV || 'development'

const argv = parseArgs(process.argv.slice(2), {
alias: {
h: 'help',
Expand Down
2 changes: 2 additions & 0 deletions bin/next-start
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import parseArgs from 'minimist'
import Server from '../server'
import { existsSync } from 'fs'

process.env.NODE_ENV = process.env.NODE_ENV || 'production'

const argv = parseArgs(process.argv.slice(2), {
alias: {
h: 'help',
Expand Down

0 comments on commit 6f117ec

Please sign in to comment.