@nuxt/nitro-server-nightly 4.4.3-29621635.a4e85d14 → 4.4.3-29621970.c57ee5bd
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/index.mjs
CHANGED
|
@@ -21,7 +21,7 @@ import { hasTTY, isCI, isWindows } from "std-env";
|
|
|
21
21
|
import { ImpoundPlugin } from "impound";
|
|
22
22
|
import { resolveModulePath } from "exsolve";
|
|
23
23
|
import { runtimeDependencies } from "nitropack/runtime/meta";
|
|
24
|
-
var version = "4.4.3-
|
|
24
|
+
var version = "4.4.3-29621970.c57ee5bd";
|
|
25
25
|
function toArray(value) {
|
|
26
26
|
return Array.isArray(value) ? value : [value];
|
|
27
27
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { decodePath, encodePath } from "ufo";
|
|
1
2
|
import { useRuntimeConfig } from "nitropack/runtime";
|
|
2
3
|
import { createHead } from "@unhead/vue/server";
|
|
3
4
|
import { sharedPrerenderCache } from "../cache.mjs";
|
|
@@ -10,12 +11,21 @@ const PRERENDER_NO_SSR_ROUTES = new Set([
|
|
|
10
11
|
"/200.html",
|
|
11
12
|
"/404.html"
|
|
12
13
|
]);
|
|
14
|
+
|
|
15
|
+
function encodeEventPath(path) {
|
|
16
|
+
const queryIndex = path.indexOf("?");
|
|
17
|
+
if (queryIndex === -1) {
|
|
18
|
+
return encodePath(decodePath(path));
|
|
19
|
+
}
|
|
20
|
+
return encodePath(decodePath(path.slice(0, queryIndex))) + path.slice(queryIndex);
|
|
21
|
+
}
|
|
13
22
|
export function createSSRContext(event) {
|
|
23
|
+
const url = encodeEventPath(event.path);
|
|
14
24
|
const ssrContext = {
|
|
15
|
-
url
|
|
25
|
+
url,
|
|
16
26
|
event,
|
|
17
27
|
runtimeConfig: useRuntimeConfig(event),
|
|
18
|
-
noSSR: !!NUXT_NO_SSR || event.context.nuxt?.noSSR || (import.meta.prerender ? PRERENDER_NO_SSR_ROUTES.has(
|
|
28
|
+
noSSR: !!NUXT_NO_SSR || event.context.nuxt?.noSSR || (import.meta.prerender ? PRERENDER_NO_SSR_ROUTES.has(url) : false),
|
|
19
29
|
head: createHead(unheadOptions),
|
|
20
30
|
error: false,
|
|
21
31
|
nuxt: undefined,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/nitro-server-nightly",
|
|
3
|
-
"version": "4.4.3-
|
|
3
|
+
"version": "4.4.3-29621970.c57ee5bd",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/nuxt/nuxt.git",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@babel/plugin-syntax-typescript": "^7.28.6",
|
|
30
30
|
"@nuxt/devalue": "^2.0.2",
|
|
31
|
-
"@nuxt/kit": "npm:@nuxt/kit-nightly@4.4.3-
|
|
31
|
+
"@nuxt/kit": "npm:@nuxt/kit-nightly@4.4.3-29621970.c57ee5bd",
|
|
32
32
|
"@unhead/vue": "^2.1.13",
|
|
33
33
|
"@vue/shared": "^3.5.33",
|
|
34
34
|
"consola": "^3.4.2",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"peerDependencies": {
|
|
59
59
|
"@babel/plugin-proposal-decorators": "^7.25.0",
|
|
60
60
|
"@rollup/plugin-babel": "^6.0.0 || ^7.0.0",
|
|
61
|
-
"nuxt": "npm:nuxt-nightly@4.4.3-
|
|
61
|
+
"nuxt": "npm:nuxt-nightly@4.4.3-29621970.c57ee5bd"
|
|
62
62
|
},
|
|
63
63
|
"peerDependenciesMeta": {
|
|
64
64
|
"@babel/plugin-proposal-decorators": {
|
|
@@ -70,9 +70,9 @@
|
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@babel/plugin-proposal-decorators": "7.29.0",
|
|
73
|
-
"@nuxt/schema": "npm:@nuxt/schema-nightly@4.4.3-
|
|
73
|
+
"@nuxt/schema": "npm:@nuxt/schema-nightly@4.4.3-29621970.c57ee5bd",
|
|
74
74
|
"@rollup/plugin-babel": "7.0.0",
|
|
75
|
-
"nuxt": "npm:nuxt-nightly@4.4.3-
|
|
75
|
+
"nuxt": "npm:nuxt-nightly@4.4.3-29621970.c57ee5bd",
|
|
76
76
|
"obuild": "0.4.33",
|
|
77
77
|
"vitest": "4.1.5"
|
|
78
78
|
},
|