Unverified Commit b8c2854d authored by Hendrik Liebau's avatar Hendrik Liebau Committed by GitHub

Allow inspecting prerender worker again (#93947)

parent 925e24e5
...@@ -16,7 +16,7 @@ import { bold, yellow } from '../lib/picocolors' ...@@ -16,7 +16,7 @@ import { bold, yellow } from '../lib/picocolors'
import { makeRe } from 'next/dist/compiled/picomatch' import { makeRe } from 'next/dist/compiled/picomatch'
import { existsSync, promises as fs } from 'fs' import { existsSync, promises as fs } from 'fs'
import os from 'os' import os from 'os'
import { Worker } from '../lib/worker' import { getNextBuildDebuggerPortOffset, Worker } from '../lib/worker'
import { defaultConfig, getNextConfigRuntime } from '../server/config-shared' import { defaultConfig, getNextConfigRuntime } from '../server/config-shared'
import devalue from 'next/dist/compiled/devalue' import devalue from 'next/dist/compiled/devalue'
import findUp from 'next/dist/compiled/find-up' import findUp from 'next/dist/compiled/find-up'
...@@ -2047,7 +2047,9 @@ export default async function build( ...@@ -2047,7 +2047,9 @@ export default async function build(
staticWorker = createStaticWorker(config, { staticWorker = createStaticWorker(config, {
numberOfWorkers, numberOfWorkers,
debuggerPortOffset: -1, debuggerPortOffset: getNextBuildDebuggerPortOffset({
kind: 'export-page',
}),
}) })
const analysisBegin = process.hrtime() const analysisBegin = process.hrtime()
......
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