diff --git a/packages/next/src/cli/next-dev.ts b/packages/next/src/cli/next-dev.ts index 7f36bc4a550d5..34aa5d1438a1e 100644 --- a/packages/next/src/cli/next-dev.ts +++ b/packages/next/src/cli/next-dev.ts @@ -348,7 +348,7 @@ const nextDev: CliCommand = async (argv) => { ...devServerOptions, isDev: true, }) - const distDir = path.join(dir, rawNextConfig.distDir || '.next') + const { pagesDir, appDir } = findPagesDir(dir) const telemetry = new Telemetry({ distDir,