@nuxt/nitro-server-nightly 4.3.1-29507514.0ed26bbf → 4.3.1-29507534.cb054d43
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-29507534.cb054d43";
|
|
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 {
|
|
4
|
+
import { 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,8 +135,7 @@ 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
|
-
|
|
139
|
-
appendResponseHeader(event, "x-nitro-prerender", encodePath(joinURL(ssrContext.url.replace(/\?.*$/, ""), PAYLOAD_FILENAME)));
|
|
138
|
+
appendResponseHeader(event, "x-nitro-prerender", joinURL(ssrContext.url.replace(/\?.*$/, ""), PAYLOAD_FILENAME));
|
|
140
139
|
// Use same ssr context to generate payload for this route
|
|
141
140
|
await payloadCache.setItem(ssrContext.url === "/" ? "/" : ssrContext.url.replace(/\/$/, ""), renderPayloadResponse(ssrContext));
|
|
142
141
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { decodePath } from "ufo";
|
|
2
1
|
import { useRuntimeConfig } from "nitropack/runtime";
|
|
3
2
|
import { createHead } from "@unhead/vue/server";
|
|
4
3
|
import { sharedPrerenderCache } from "../cache.mjs";
|
|
@@ -11,16 +10,9 @@ const PRERENDER_NO_SSR_ROUTES = new Set([
|
|
|
11
10
|
"/200.html",
|
|
12
11
|
"/404.html"
|
|
13
12
|
]);
|
|
14
|
-
function decodeEventPath(path) {
|
|
15
|
-
const queryIndex = path.indexOf("?");
|
|
16
|
-
if (queryIndex === -1) {
|
|
17
|
-
return decodePath(path);
|
|
18
|
-
}
|
|
19
|
-
return decodePath(path.slice(0, queryIndex)) + path.slice(queryIndex);
|
|
20
|
-
}
|
|
21
13
|
export function createSSRContext(event) {
|
|
22
14
|
const ssrContext = {
|
|
23
|
-
url:
|
|
15
|
+
url: event.path,
|
|
24
16
|
event,
|
|
25
17
|
runtimeConfig: useRuntimeConfig(event),
|
|
26
18
|
noSSR: !!NUXT_NO_SSR || event.context.nuxt?.noSSR || (import.meta.prerender ? PRERENDER_NO_SSR_ROUTES.has(event.path) : false),
|
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-29507534.cb054d43",
|
|
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-29507534.cb054d43",
|
|
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-29507534.cb054d43"
|
|
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-29507534.cb054d43",
|
|
54
|
+
"nuxt": "npm:nuxt-nightly@4.3.1-29507534.cb054d43",
|
|
55
55
|
"obuild": "0.4.14",
|
|
56
56
|
"vitest": "3.2.4"
|
|
57
57
|
},
|