Commit d483fa49 authored by JJ Kasper's avatar JJ Kasper Committed by Tim Neutkens

Don't run findPagesDir in production mode (#8896)

parent 0410a43d
...@@ -66,7 +66,7 @@ export default class Server { ...@@ -66,7 +66,7 @@ export default class Server {
quiet: boolean quiet: boolean
nextConfig: NextConfig nextConfig: NextConfig
distDir: string distDir: string
pagesDir: string pagesDir?: string
publicDir: string publicDir: string
pagesManifest: string pagesManifest: string
buildId: string buildId: string
...@@ -97,7 +97,6 @@ export default class Server { ...@@ -97,7 +97,6 @@ export default class Server {
this.dir = resolve(dir) this.dir = resolve(dir)
this.quiet = quiet this.quiet = quiet
const phase = this.currentPhase() const phase = this.currentPhase()
this.pagesDir = findPagesDir(this.dir)
this.nextConfig = loadConfig(phase, this.dir, conf) this.nextConfig = loadConfig(phase, this.dir, conf)
this.distDir = join(this.dir, this.nextConfig.distDir) this.distDir = join(this.dir, this.nextConfig.distDir)
this.publicDir = join(this.dir, CLIENT_PUBLIC_FILES_PATH) this.publicDir = join(this.dir, CLIENT_PUBLIC_FILES_PATH)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment