diff --git a/src/dev/server.ts b/src/dev/server.ts index 3c2fc9d64e..24846efeca 100644 --- a/src/dev/server.ts +++ b/src/dev/server.ts @@ -135,7 +135,7 @@ export function createDevServer(nitro: Nitro): NitroDevServer { }, dev: { pid: process.pid, - workerAddress: currentWorker.address, + workerAddress: currentWorker?.address, }, }; await writeFile(buildInfoPath, JSON.stringify(buildInfo, null, 2));