nuxt-nightly 4.2.0-29336619.cf102e88 → 4.2.0-29344147.7bcc4ca3
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/app/composables/payload.js +1 -1
- package/dist/app/types/augments.d.ts +0 -26
- package/dist/app/types.d.ts +35 -2
- package/dist/index.mjs +30 -770
- package/package.json +6 -13
- package/types.d.mts +1 -38
- package/types.d.ts +1 -38
- package/dist/core/runtime/nitro/handlers/error.d.ts +0 -3
- package/dist/core/runtime/nitro/handlers/error.js +0 -63
- package/dist/core/runtime/nitro/handlers/island.d.ts +0 -4
- package/dist/core/runtime/nitro/handlers/island.js +0 -100
- package/dist/core/runtime/nitro/handlers/renderer.d.ts +0 -16
- package/dist/core/runtime/nitro/handlers/renderer.js +0 -237
- package/dist/core/runtime/nitro/middleware/no-ssr.d.ts +0 -2
- package/dist/core/runtime/nitro/middleware/no-ssr.js +0 -7
- package/dist/core/runtime/nitro/plugins/dev-server-logs.d.ts +0 -3
- package/dist/core/runtime/nitro/plugins/dev-server-logs.js +0 -82
- package/dist/core/runtime/nitro/templates/error-500.d.ts +0 -2
- package/dist/core/runtime/nitro/templates/error-500.js +0 -6
- package/dist/core/runtime/nitro/utils/app-config.d.ts +0 -2
- package/dist/core/runtime/nitro/utils/app-config.js +0 -25
- package/dist/core/runtime/nitro/utils/cache-driver.d.ts +0 -2
- package/dist/core/runtime/nitro/utils/cache-driver.js +0 -34
- package/dist/core/runtime/nitro/utils/cache.d.ts +0 -8
- package/dist/core/runtime/nitro/utils/cache.js +0 -18
- package/dist/core/runtime/nitro/utils/config.d.ts +0 -1
- package/dist/core/runtime/nitro/utils/config.js +0 -1
- package/dist/core/runtime/nitro/utils/dev.d.ts +0 -1
- package/dist/core/runtime/nitro/utils/dev.js +0 -328
- package/dist/core/runtime/nitro/utils/error.d.ts +0 -6
- package/dist/core/runtime/nitro/utils/error.js +0 -11
- package/dist/core/runtime/nitro/utils/paths.d.ts +0 -4
- package/dist/core/runtime/nitro/utils/paths.js +0 -16
- package/dist/core/runtime/nitro/utils/renderer/app.d.ts +0 -7
- package/dist/core/runtime/nitro/utils/renderer/app.js +0 -32
- package/dist/core/runtime/nitro/utils/renderer/build-files.d.ts +0 -22
- package/dist/core/runtime/nitro/utils/renderer/build-files.js +0 -86
- package/dist/core/runtime/nitro/utils/renderer/inline-styles.d.ts +0 -2
- package/dist/core/runtime/nitro/utils/renderer/inline-styles.js +0 -13
- package/dist/core/runtime/nitro/utils/renderer/islands.d.ts +0 -36
- package/dist/core/runtime/nitro/utils/renderer/islands.js +0 -82
- package/dist/core/runtime/nitro/utils/renderer/payload.d.ts +0 -37
- package/dist/core/runtime/nitro/utils/renderer/payload.js +0 -66
|
@@ -85,7 +85,7 @@ export async function isPrerendered(url = useRoute().path) {
|
|
|
85
85
|
if (!appManifest) {
|
|
86
86
|
return !!nuxtApp.payload.prerenderedAt;
|
|
87
87
|
}
|
|
88
|
-
url = url.replace(/\/$/, "");
|
|
88
|
+
url = url === "/" ? url : url.replace(/\/$/, "");
|
|
89
89
|
const manifest = await getAppManifest();
|
|
90
90
|
if (manifest.prerendered.includes(url)) {
|
|
91
91
|
return true;
|
|
@@ -1,31 +1,5 @@
|
|
|
1
1
|
import type { UseHeadInput } from '@unhead/vue/types';
|
|
2
2
|
import type { NuxtApp, useNuxtApp } from '../nuxt.js';
|
|
3
|
-
declare module 'nitropack' {
|
|
4
|
-
interface NitroRuntimeConfigApp {
|
|
5
|
-
buildAssetsDir: string;
|
|
6
|
-
cdnURL: string;
|
|
7
|
-
}
|
|
8
|
-
interface NitroRouteRules {
|
|
9
|
-
ssr?: boolean;
|
|
10
|
-
noScripts?: boolean;
|
|
11
|
-
/** @deprecated Use `noScripts` instead */
|
|
12
|
-
experimentalNoScripts?: boolean;
|
|
13
|
-
appMiddleware?: Record<string, boolean>;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
declare module 'nitropack/types' {
|
|
17
|
-
interface NitroRuntimeConfigApp {
|
|
18
|
-
buildAssetsDir: string;
|
|
19
|
-
cdnURL: string;
|
|
20
|
-
}
|
|
21
|
-
interface NitroRouteRules {
|
|
22
|
-
ssr?: boolean;
|
|
23
|
-
noScripts?: boolean;
|
|
24
|
-
/** @deprecated Use `noScripts` instead */
|
|
25
|
-
experimentalNoScripts?: boolean;
|
|
26
|
-
appMiddleware?: Record<string, boolean>;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
3
|
declare global {
|
|
30
4
|
namespace NodeJS {
|
|
31
5
|
interface Process {
|
package/dist/app/types.d.ts
CHANGED
|
@@ -1,6 +1,39 @@
|
|
|
1
|
+
import type { SerializableHead } from '@unhead/vue';
|
|
1
2
|
export type { PageMeta, NuxtPageProps } from '../pages/runtime/index.js';
|
|
2
3
|
export interface NuxtAppLiterals {
|
|
3
4
|
[key: string]: string;
|
|
4
5
|
}
|
|
5
|
-
export
|
|
6
|
-
|
|
6
|
+
export interface NuxtIslandSlotResponse {
|
|
7
|
+
props: Array<unknown>;
|
|
8
|
+
fallback?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface NuxtIslandClientResponse {
|
|
11
|
+
html: string;
|
|
12
|
+
props: unknown;
|
|
13
|
+
chunk: string;
|
|
14
|
+
slots?: Record<string, string>;
|
|
15
|
+
}
|
|
16
|
+
export interface NuxtIslandContext {
|
|
17
|
+
id?: string;
|
|
18
|
+
name: string;
|
|
19
|
+
props?: Record<string, any>;
|
|
20
|
+
url: string;
|
|
21
|
+
slots: Record<string, Omit<NuxtIslandSlotResponse, 'fallback'>>;
|
|
22
|
+
components: Record<string, Omit<NuxtIslandClientResponse, 'html'>>;
|
|
23
|
+
}
|
|
24
|
+
export interface NuxtIslandResponse {
|
|
25
|
+
id?: string;
|
|
26
|
+
html: string;
|
|
27
|
+
head: SerializableHead;
|
|
28
|
+
props?: Record<string, Record<string, any>>;
|
|
29
|
+
components?: Record<string, NuxtIslandClientResponse>;
|
|
30
|
+
slots?: Record<string, NuxtIslandSlotResponse>;
|
|
31
|
+
}
|
|
32
|
+
export interface NuxtRenderHTMLContext {
|
|
33
|
+
htmlAttrs: string[];
|
|
34
|
+
head: string[];
|
|
35
|
+
bodyAttrs: string[];
|
|
36
|
+
bodyPrepend: string[];
|
|
37
|
+
body: string[];
|
|
38
|
+
bodyAppend: string[];
|
|
39
|
+
}
|