nitro-nightly 3.0.1-20251106-162832-55808f9b → 3.0.1-20251106-171053-91c2bee6
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.
- package/dist/_build/vite.build.mjs +1 -1
- package/dist/_build/vite.plugin.mjs +3 -3
- package/dist/_chunks/{CJHULh7U.mjs → Dm6E92Pi.mjs} +6 -6
- package/dist/builder.mjs +1 -1
- package/dist/presets/bun/runtime/bun.mjs +1 -2
- package/dist/presets/deno/runtime/deno-server.mjs +1 -2
- package/dist/presets/node/runtime/node-server.mjs +1 -2
- package/dist/types/index.d.mts +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +1 -1
|
@@ -13,7 +13,7 @@ import "../_libs/tinyglobby.mjs";
|
|
|
13
13
|
import "../_libs/compatx.mjs";
|
|
14
14
|
import "../_libs/klona.mjs";
|
|
15
15
|
import { r as a } from "../_libs/std-env.mjs";
|
|
16
|
-
import "../_chunks/
|
|
16
|
+
import "../_chunks/Dm6E92Pi.mjs";
|
|
17
17
|
import "../_libs/escape-string-regexp.mjs";
|
|
18
18
|
import "../_libs/dot-prop.mjs";
|
|
19
19
|
import "../_chunks/zV3n76Yk.mjs";
|
|
@@ -2,7 +2,7 @@ import { C as join$1, D as relative$1, O as resolve$1, S as isAbsolute$1, b as d
|
|
|
2
2
|
import { f as sanitizeFilePath } from "../_libs/local-pkg.mjs";
|
|
3
3
|
import { t as formatCompatibilityDate } from "../_libs/compatx.mjs";
|
|
4
4
|
import { n as T, r as a } from "../_libs/std-env.mjs";
|
|
5
|
-
import { a as createNitro, n as prepare, r as copyPublicAssets } from "../_chunks/
|
|
5
|
+
import { a as createNitro, n as prepare, r as copyPublicAssets } from "../_chunks/Dm6E92Pi.mjs";
|
|
6
6
|
import { a as prettyPath, n as writeBuildInfo, t as getBuildInfo } from "../_chunks/zV3n76Yk.mjs";
|
|
7
7
|
import { o as scanHandlers } from "../_chunks/DD4msOU9.mjs";
|
|
8
8
|
import { i as NodeDevWorker, r as NitroDevApp } from "../_dev.mjs";
|
|
@@ -740,9 +740,9 @@ async function setupNitroContext(ctx, configEnv, userConfig) {
|
|
|
740
740
|
ctx.services.ssr = { entry: ssrEntry };
|
|
741
741
|
}
|
|
742
742
|
}
|
|
743
|
-
if (!ctx.nitro.options.renderer?.
|
|
743
|
+
if (!ctx.nitro.options.renderer?.handler && !ctx.nitro.options.renderer?.template && ctx.services.ssr?.entry) {
|
|
744
744
|
ctx.nitro.options.renderer ??= {};
|
|
745
|
-
ctx.nitro.options.renderer.
|
|
745
|
+
ctx.nitro.options.renderer.handler = resolve$1(runtimeDir, "internal/vite/ssr-renderer");
|
|
746
746
|
}
|
|
747
747
|
const publicDistDir = ctx._publicDistDir = userConfig.build?.outDir || resolve$1(ctx.nitro.options.buildDir, "vite/public");
|
|
748
748
|
ctx.nitro.options.publicAssets.push({
|
|
@@ -358,7 +358,7 @@ async function resolvePathOptions(options) {
|
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
|
-
if (options.renderer?.
|
|
361
|
+
if (options.renderer?.handler) options.renderer.handler = resolveModulePath(resolveNitroPath(options.renderer?.handler, options), {
|
|
362
362
|
from: [options.rootDir, ...options.scanDirs],
|
|
363
363
|
extensions: RESOLVE_EXTENSIONS
|
|
364
364
|
});
|
|
@@ -366,7 +366,7 @@ async function resolvePathOptions(options) {
|
|
|
366
366
|
from: [options.rootDir, ...options.scanDirs],
|
|
367
367
|
extensions: [".html"]
|
|
368
368
|
});
|
|
369
|
-
else if (!options.renderer?.
|
|
369
|
+
else if (!options.renderer?.handler) {
|
|
370
370
|
const defaultIndex = resolveModulePath("./index.html", {
|
|
371
371
|
from: [options.rootDir, ...options.scanDirs],
|
|
372
372
|
extensions: [".html"],
|
|
@@ -378,9 +378,9 @@ async function resolvePathOptions(options) {
|
|
|
378
378
|
consola$1.info(`Using \`${prettyPath(defaultIndex)}\` as renderer template.`);
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
|
-
if (options.renderer?.template && !options.renderer?.
|
|
381
|
+
if (options.renderer?.template && !options.renderer?.handler) {
|
|
382
382
|
options.renderer ??= {};
|
|
383
|
-
options.renderer.
|
|
383
|
+
options.renderer.handler = join(runtimeDir, "internal/routes/renderer-template" + (options.dev ? ".dev" : ""));
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
386
|
|
|
@@ -809,10 +809,10 @@ function initNitroRouting(nitro) {
|
|
|
809
809
|
...nitro.options.handlers,
|
|
810
810
|
...nitro.scannedHandlers
|
|
811
811
|
].filter((h) => h && !h.middleware && matchesEnv(h));
|
|
812
|
-
if (nitro.options.renderer?.
|
|
812
|
+
if (nitro.options.renderer?.handler) _routes.push({
|
|
813
813
|
route: "/**",
|
|
814
814
|
lazy: true,
|
|
815
|
-
handler: nitro.options.renderer?.
|
|
815
|
+
handler: nitro.options.renderer?.handler
|
|
816
816
|
});
|
|
817
817
|
routes._update(_routes.map((h) => ({
|
|
818
818
|
...h,
|
package/dist/builder.mjs
CHANGED
|
@@ -13,7 +13,7 @@ import "./_libs/tinyglobby.mjs";
|
|
|
13
13
|
import "./_libs/compatx.mjs";
|
|
14
14
|
import "./_libs/klona.mjs";
|
|
15
15
|
import "./_libs/std-env.mjs";
|
|
16
|
-
import { a as createNitro, c as loadOptions, i as build, n as prepare, o as listTasks, r as copyPublicAssets, s as runTask, t as prerender } from "./_chunks/
|
|
16
|
+
import { a as createNitro, c as loadOptions, i as build, n as prepare, o as listTasks, r as copyPublicAssets, s as runTask, t as prerender } from "./_chunks/Dm6E92Pi.mjs";
|
|
17
17
|
import "./_libs/escape-string-regexp.mjs";
|
|
18
18
|
import "./_libs/dot-prop.mjs";
|
|
19
19
|
import { t as getBuildInfo } from "./_chunks/zV3n76Yk.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "#nitro-internal-pollyfills";
|
|
2
2
|
import { serve } from "srvx/bun";
|
|
3
3
|
import { useNitroApp } from "nitro/runtime";
|
|
4
|
-
import { trapUnhandledErrors } from "nitro/runtime/internal";
|
|
4
|
+
import { trapUnhandledErrors, startScheduleRunner } from "nitro/runtime/internal";
|
|
5
5
|
const port = Number.parseInt(process.env.NITRO_PORT || process.env.PORT || "") || 3e3;
|
|
6
6
|
const host = process.env.NITRO_HOST || process.env.HOST;
|
|
7
7
|
const cert = process.env.NITRO_SSL_CERT;
|
|
@@ -21,7 +21,6 @@ serve({
|
|
|
21
21
|
trapUnhandledErrors();
|
|
22
22
|
// Scheduled tasks
|
|
23
23
|
if (import.meta._tasks) {
|
|
24
|
-
const { startScheduleRunner } = await import("nitro/runtime/internal");
|
|
25
24
|
startScheduleRunner();
|
|
26
25
|
}
|
|
27
26
|
export default {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "#nitro-internal-pollyfills";
|
|
2
2
|
import { serve } from "srvx/deno";
|
|
3
3
|
import { useNitroApp } from "nitro/runtime";
|
|
4
|
-
import { trapUnhandledErrors } from "nitro/runtime/internal";
|
|
4
|
+
import { trapUnhandledErrors, startScheduleRunner } from "nitro/runtime/internal";
|
|
5
5
|
const port = Number.parseInt(process.env.NITRO_PORT || process.env.PORT || "") || 3e3;
|
|
6
6
|
const host = process.env.NITRO_HOST || process.env.HOST;
|
|
7
7
|
const cert = process.env.NITRO_SSL_CERT;
|
|
@@ -21,7 +21,6 @@ serve({
|
|
|
21
21
|
trapUnhandledErrors();
|
|
22
22
|
// Scheduled tasks
|
|
23
23
|
if (import.meta._tasks) {
|
|
24
|
-
const { startScheduleRunner } = await import("nitro/runtime/internal");
|
|
25
24
|
startScheduleRunner();
|
|
26
25
|
}
|
|
27
26
|
export default {};
|
|
@@ -2,7 +2,7 @@ import "#nitro-internal-pollyfills";
|
|
|
2
2
|
import cluster from "node:cluster";
|
|
3
3
|
import { serve } from "srvx/node";
|
|
4
4
|
import { useNitroApp } from "nitro/runtime";
|
|
5
|
-
import { trapUnhandledErrors } from "nitro/runtime/internal";
|
|
5
|
+
import { trapUnhandledErrors, startScheduleRunner } from "nitro/runtime/internal";
|
|
6
6
|
const port = Number.parseInt(process.env.NITRO_PORT || process.env.PORT || "") || 3e3;
|
|
7
7
|
const host = process.env.NITRO_HOST || process.env.HOST;
|
|
8
8
|
const cert = process.env.NITRO_SSL_CERT;
|
|
@@ -28,7 +28,6 @@ serve({
|
|
|
28
28
|
trapUnhandledErrors();
|
|
29
29
|
// Scheduled tasks
|
|
30
30
|
if (import.meta._tasks) {
|
|
31
|
-
const { startScheduleRunner } = await import("nitro/runtime/internal");
|
|
32
31
|
startScheduleRunner();
|
|
33
32
|
}
|
|
34
33
|
export default {};
|
package/dist/types/index.d.mts
CHANGED
package/dist/vite.mjs
CHANGED
|
@@ -13,7 +13,7 @@ import "./_libs/tinyglobby.mjs";
|
|
|
13
13
|
import "./_libs/compatx.mjs";
|
|
14
14
|
import "./_libs/klona.mjs";
|
|
15
15
|
import "./_libs/std-env.mjs";
|
|
16
|
-
import "./_chunks/
|
|
16
|
+
import "./_chunks/Dm6E92Pi.mjs";
|
|
17
17
|
import "./_libs/escape-string-regexp.mjs";
|
|
18
18
|
import "./_libs/dot-prop.mjs";
|
|
19
19
|
import "./_chunks/zV3n76Yk.mjs";
|
package/package.json
CHANGED