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
01780fe7
Commit
01780fe7
authored
Oct 28, 2017
by
Tim Neutkens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure NODE_ENV is production for react-dom to optimize
parent
015d06a3
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3 additions
and
8 deletions
+3
-8
next
bin/next
+3
-0
next-build
bin/next-build
+0
-2
next-dev
bin/next-dev
+0
-2
next-export
bin/next-export
+0
-2
next-start
bin/next-start
+0
-2
No files found.
bin/next
View file @
01780fe7
...
...
@@ -55,6 +55,9 @@ if (commands.has(cmd)) {
args
=
process
.
argv
.
slice
(
2
)
}
const
defaultEnv
=
cmd
===
'dev'
?
'development'
:
'production'
process
.
env
.
NODE_ENV
=
process
.
env
.
NODE_ENV
||
defaultEnv
const
bin
=
join
(
__dirname
,
'next-'
+
cmd
)
const
startProcess
=
()
=>
{
...
...
bin/next-build
View file @
01780fe7
...
...
@@ -5,8 +5,6 @@ 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'
...
...
bin/next-dev
View file @
01780fe7
...
...
@@ -7,8 +7,6 @@ import Server from '../server'
import
{
printAndExit
}
from
'../lib/utils'
import
pkgUp
from
'pkg-up'
process
.
env
.
NODE_ENV
=
process
.
env
.
NODE_ENV
||
'development'
const
argv
=
parseArgs
(
process
.
argv
.
slice
(
2
),
{
alias
:
{
h
:
'help'
,
...
...
bin/next-export
View file @
01780fe7
...
...
@@ -5,8 +5,6 @@ import parseArgs from 'minimist'
import
exportApp
from
'../server/export'
import
{
printAndExit
}
from
'../lib/utils'
process
.
env
.
NODE_ENV
=
process
.
env
.
NODE_ENV
||
'production'
const
argv
=
parseArgs
(
process
.
argv
.
slice
(
2
),
{
alias
:
{
h
:
'help'
,
...
...
bin/next-start
View file @
01780fe7
...
...
@@ -4,8 +4,6 @@ import { resolve } from 'path'
import
parseArgs
from
'minimist'
import
Server
from
'../server'
process
.
env
.
NODE_ENV
=
process
.
env
.
NODE_ENV
||
'production'
const
argv
=
parseArgs
(
process
.
argv
.
slice
(
2
),
{
alias
:
{
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