Skip to content

Commit

Permalink
fix(dev): conditionally access worker address for build info (resolves
Browse files Browse the repository at this point in the history
…#1947)

regression of #1930
  • Loading branch information
pi0 committed Nov 23, 2023
1 parent 93fbc0b commit b32203e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dev/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit b32203e

Please sign in to comment.