nitro-nightly 3.1.0-20251028-160624-0b002649 → 3.1.0-20251029-083118-c3a252ab
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.
|
@@ -6,7 +6,7 @@ import { a } from '../_deps/std-env.mjs';
|
|
|
6
6
|
import { r as resolve, d as dirname, a as relative } from '../_deps/pathe.mjs';
|
|
7
7
|
|
|
8
8
|
const SUPPORTED_NODE_VERSIONS = [20, 22];
|
|
9
|
-
const FALLBACK_ROUTE = "/
|
|
9
|
+
const FALLBACK_ROUTE = "/__server";
|
|
10
10
|
const ISR_SUFFIX = "-isr";
|
|
11
11
|
const SAFE_FS_CHAR_RE = /[^a-zA-Z0-9_.[\]/]/g;
|
|
12
12
|
function getSystemNodeVersion() {
|
|
@@ -318,7 +318,7 @@ const vercel = defineNitroPreset(
|
|
|
318
318
|
entry: "./vercel/runtime/vercel",
|
|
319
319
|
output: {
|
|
320
320
|
dir: "{{ rootDir }}/.vercel/output",
|
|
321
|
-
serverDir: "{{ output.dir }}/functions/
|
|
321
|
+
serverDir: "{{ output.dir }}/functions/__server.func",
|
|
322
322
|
publicDir: "{{ output.dir }}/static/{{ baseURL }}"
|
|
323
323
|
},
|
|
324
324
|
commands: {
|
|
@@ -326,11 +326,13 @@ const vercel = defineNitroPreset(
|
|
|
326
326
|
preview: ""
|
|
327
327
|
},
|
|
328
328
|
hooks: {
|
|
329
|
-
"
|
|
329
|
+
"build:before": async (nitro) => {
|
|
330
330
|
const runtime = await resolveVercelRuntime(nitro);
|
|
331
331
|
if (runtime.startsWith("bun") && !nitro.options.exportConditions.includes("bun")) {
|
|
332
332
|
nitro.options.exportConditions.push("bun");
|
|
333
333
|
}
|
|
334
|
+
},
|
|
335
|
+
"rollup:before": (nitro) => {
|
|
334
336
|
deprecateSWR(nitro);
|
|
335
337
|
},
|
|
336
338
|
async compiled(nitro) {
|
package/package.json
CHANGED