Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
6f117ecf
Commit
6f117ecf
authored
Jan 16, 2017
by
Arunoda Susiripala
Committed by
Guillermo Rauch
Jan 16, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set default NODE_ENV value. (#768)
parent
87671656
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
1 deletion
+6
-1
next-build
bin/next-build
+2
-1
next-dev
bin/next-dev
+2
-0
next-start
bin/next-start
+2
-0
No files found.
bin/next-build
View file @
6f117ecf
#!/usr/bin/env node
#!/usr/bin/env node
import
{
resolve
,
join
}
from
'path'
import
{
resolve
,
join
}
from
'path'
import
{
existsSync
}
from
'fs'
import
{
existsSync
}
from
'fs'
import
parseArgs
from
'minimist'
import
parseArgs
from
'minimist'
import
build
from
'../server/build'
import
build
from
'../server/build'
import
{
printAndExit
}
from
'../lib/utils'
import
{
printAndExit
}
from
'../lib/utils'
process
.
env
.
NODE_ENV
=
process
.
env
.
NODE_ENV
||
'production'
const
argv
=
parseArgs
(
process
.
argv
.
slice
(
2
),
{
const
argv
=
parseArgs
(
process
.
argv
.
slice
(
2
),
{
alias
:
{
alias
:
{
h
:
'help'
h
:
'help'
...
...
bin/next-dev
View file @
6f117ecf
...
@@ -6,6 +6,8 @@ import { existsSync } from 'fs'
...
@@ -6,6 +6,8 @@ import { existsSync } from 'fs'
import
Server
from
'../server'
import
Server
from
'../server'
import
{
printAndExit
}
from
'../lib/utils'
import
{
printAndExit
}
from
'../lib/utils'
process
.
env
.
NODE_ENV
=
process
.
env
.
NODE_ENV
||
'development'
const
argv
=
parseArgs
(
process
.
argv
.
slice
(
2
),
{
const
argv
=
parseArgs
(
process
.
argv
.
slice
(
2
),
{
alias
:
{
alias
:
{
h
:
'help'
,
h
:
'help'
,
...
...
bin/next-start
View file @
6f117ecf
...
@@ -5,6 +5,8 @@ import parseArgs from 'minimist'
...
@@ -5,6 +5,8 @@ import parseArgs from 'minimist'
import
Server
from
'../server'
import
Server
from
'../server'
import
{
existsSync
}
from
'fs'
import
{
existsSync
}
from
'fs'
process
.
env
.
NODE_ENV
=
process
.
env
.
NODE_ENV
||
'production'
const
argv
=
parseArgs
(
process
.
argv
.
slice
(
2
),
{
const
argv
=
parseArgs
(
process
.
argv
.
slice
(
2
),
{
alias
:
{
alias
:
{
h
:
'help'
,
h
:
'help'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment