@nuxt/nitro-server-nightly 4.3.1-29494674.a33ba7a7 → 4.3.1-29494972.f47362d1
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 { resolveModulePath } from "exsolve";
|
|
|
21
21
|
import { runtimeDependencies } from "nitropack/runtime/meta";
|
|
22
22
|
|
|
23
23
|
//#region package.json
|
|
24
|
-
var version = "4.3.1-
|
|
24
|
+
var version = "4.3.1-29494972.f47362d1";
|
|
25
25
|
|
|
26
26
|
//#endregion
|
|
27
27
|
//#region src/utils.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
2
2
|
import { getPrefetchLinks, getPreloadLinks, getRequestDependencies, renderResourceHeaders } from "vue-bundle-renderer/runtime";
|
|
3
3
|
import { appendResponseHeader, createError, getQuery, getResponseStatus, getResponseStatusText, writeEarlyHints } from "h3";
|
|
4
|
-
import { getQuery as getURLQuery, joinURL } from "ufo";
|
|
4
|
+
import { encodePath, getQuery as getURLQuery, joinURL } from "ufo";
|
|
5
5
|
import { propsToString, renderSSRHead } from "@unhead/vue/server";
|
|
6
6
|
import destr from "destr";
|
|
7
7
|
import { defineRenderHandler, getRouteRules, useNitroApp } from "nitropack/runtime";
|
|
@@ -135,7 +135,8 @@ export default defineRenderHandler(async (event) => {
|
|
|
135
135
|
}
|
|
136
136
|
if (_PAYLOAD_EXTRACTION && import.meta.prerender) {
|
|
137
137
|
// Hint nitro to prerender payload for this route
|
|
138
|
-
|
|
138
|
+
// Encode the path for the header since ssrContext.url is decoded
|
|
139
|
+
appendResponseHeader(event, "x-nitro-prerender", encodePath(joinURL(ssrContext.url.replace(/\?.*$/, ""), PAYLOAD_FILENAME)));
|
|
139
140
|
// Use same ssr context to generate payload for this route
|
|
140
141
|
await payloadCache.setItem(ssrContext.url === "/" ? "/" : ssrContext.url.replace(/\/$/, ""), renderPayloadResponse(ssrContext));
|
|
141
142
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/nitro-server-nightly",
|
|
3
|
-
"version": "4.3.1-
|
|
3
|
+
"version": "4.3.1-29494972.f47362d1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/nuxt/nuxt.git",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@nuxt/devalue": "^2.0.2",
|
|
22
|
-
"@nuxt/kit": "npm:@nuxt/kit-nightly@4.3.1-
|
|
22
|
+
"@nuxt/kit": "npm:@nuxt/kit-nightly@4.3.1-29494972.f47362d1",
|
|
23
23
|
"@unhead/vue": "^2.1.2",
|
|
24
24
|
"@vue/shared": "^3.5.27",
|
|
25
25
|
"consola": "^3.4.2",
|
|
@@ -47,11 +47,11 @@
|
|
|
47
47
|
"vue-devtools-stub": "^0.1.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"nuxt": "npm:nuxt-nightly@4.3.1-
|
|
50
|
+
"nuxt": "npm:nuxt-nightly@4.3.1-29494972.f47362d1"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@nuxt/schema": "npm:@nuxt/schema-nightly@4.3.1-
|
|
54
|
-
"nuxt": "npm:nuxt-nightly@4.3.1-
|
|
53
|
+
"@nuxt/schema": "npm:@nuxt/schema-nightly@4.3.1-29494972.f47362d1",
|
|
54
|
+
"nuxt": "npm:nuxt-nightly@4.3.1-29494972.f47362d1",
|
|
55
55
|
"obuild": "0.4.14",
|
|
56
56
|
"vitest": "3.2.4"
|
|
57
57
|
},
|