1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Use this.dir to join the resolved path

This commit is contained in:
Tim Neutkens 2018-06-13 20:30:55 +02:00
parent f670412c77
commit 83b5c13810

View file

@ -35,7 +35,7 @@ export default class Server {
this.http = null
const phase = dev ? PHASE_DEVELOPMENT_SERVER : PHASE_PRODUCTION_SERVER
this.nextConfig = loadConfig(phase, this.dir, conf)
this.distDir = join(dir, this.nextConfig.distDir)
this.distDir = join(this.dir, this.nextConfig.distDir)
this.hotReloader = dev ? this.getHotReloader(this.dir, { quiet, config: this.nextConfig }) : null