nitro-nightly 3.0.1-20251230-125747-eecf725d → 3.0.1-20251230-165713-6e801e22
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-
|
|
3
|
+
"version": "3.0.1-20251230-165713-6e801e22",
|
|
4
4
|
"description": "Build and Deploy Universal JavaScript Servers",
|
|
5
5
|
"homepage": "https://nitro.build",
|
|
6
6
|
"repository": "nitrojs/nitro",
|
|
@@ -63,13 +63,13 @@
|
|
|
63
63
|
"consola": "^3.4.2",
|
|
64
64
|
"crossws": "^0.4.1",
|
|
65
65
|
"db0": "^0.3.4",
|
|
66
|
-
"h3": "^2.0.1-rc.
|
|
66
|
+
"h3": "^2.0.1-rc.7",
|
|
67
67
|
"jiti": "^2.6.1",
|
|
68
68
|
"ofetch": "^2.0.0-alpha.3",
|
|
69
69
|
"ohash": "^2.0.11",
|
|
70
|
-
"oxc-minify": "^0.
|
|
71
|
-
"oxc-transform": "^0.
|
|
72
|
-
"srvx": "^0.
|
|
70
|
+
"oxc-minify": "^0.106.0",
|
|
71
|
+
"oxc-transform": "^0.106.0",
|
|
72
|
+
"srvx": "^0.10.0",
|
|
73
73
|
"undici": "^7.16.0",
|
|
74
74
|
"unenv": "^2.0.0-rc.24",
|
|
75
75
|
"unstorage": "^2.0.0-alpha.4"
|