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
d483fa49
Commit
d483fa49
authored
Sep 30, 2019
by
JJ Kasper
Committed by
Tim Neutkens
Sep 30, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't run findPagesDir in production mode (#8896)
parent
0410a43d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
next-server.ts
packages/next/next-server/server/next-server.ts
+1
-2
No files found.
packages/next/next-server/server/next-server.ts
View file @
d483fa49
...
...
@@ -66,7 +66,7 @@ export default class Server {
quiet
:
boolean
nextConfig
:
NextConfig
distDir
:
string
pagesDir
:
string
pagesDir
?
:
string
publicDir
:
string
pagesManifest
:
string
buildId
:
string
...
...
@@ -97,7 +97,6 @@ export default class Server {
this
.
dir
=
resolve
(
dir
)
this
.
quiet
=
quiet
const
phase
=
this
.
currentPhase
()
this
.
pagesDir
=
findPagesDir
(
this
.
dir
)
this
.
nextConfig
=
loadConfig
(
phase
,
this
.
dir
,
conf
)
this
.
distDir
=
join
(
this
.
dir
,
this
.
nextConfig
.
distDir
)
this
.
publicDir
=
join
(
this
.
dir
,
CLIENT_PUBLIC_FILES_PATH
)
...
...
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