nitro-nightly 3.0.1-20251230-125747-eecf725d → 3.0.1-20251230-132916-74f2198d

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -403,7 +403,7 @@ function nitroPreviewPlugin(ctx) {
403
403
  consola$1.info(`Spawning preview server...`);
404
404
  consola$1.info(buildInfo.commands?.preview);
405
405
  console.log("");
406
- const { getRandomPort } = await import("get-port-please");
406
+ const { getRandomPort, waitForPort } = await import("get-port-please");
407
407
  const randomPort = await getRandomPort();
408
408
  const child = spawn(command, args, {
409
409
  stdio: "inherit",
@@ -434,6 +434,10 @@ function nitroPreviewPlugin(ctx) {
434
434
  if (child && !child.killed) proxy.web(req, res).catch(next);
435
435
  else res.end(`Nitro preview server is not running.`);
436
436
  });
437
+ await waitForPort(randomPort, {
438
+ retries: 20,
439
+ delay: 500
440
+ });
437
441
  }
438
442
  };
439
443
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nitro-nightly",
3
- "version": "3.0.1-20251230-125747-eecf725d",
3
+ "version": "3.0.1-20251230-132916-74f2198d",
4
4
  "description": "Build and Deploy Universal JavaScript Servers",
5
5
  "homepage": "https://nitro.build",
6
6
  "repository": "nitrojs/nitro",