vike-lite 1.1.0 → 1.1.2
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.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as RenderContext, r as matchRoute, t as Config } from "../index-
|
|
1
|
+
import { n as RenderContext, r as matchRoute, t as Config } from "../index-D8sM_4GF.mjs";
|
|
2
2
|
export { Config, RenderContext, matchRoute };
|
package/dist/server.mjs
CHANGED
|
@@ -112,7 +112,7 @@ async function renderErrorPage(req, status, urlPathname, error) {
|
|
|
112
112
|
is500: status === 500,
|
|
113
113
|
errorMessage: status === 500 && error instanceof Error ? error.message : void 0
|
|
114
114
|
};
|
|
115
|
-
const html =
|
|
115
|
+
const html = onRenderHtml({
|
|
116
116
|
pageContext,
|
|
117
117
|
Page: PageModule.Page ?? PageModule.default,
|
|
118
118
|
Layout: LayoutModule ? LayoutModule.Layout ?? LayoutModule.default : void 0,
|
|
@@ -147,7 +147,7 @@ async function renderPage(req) {
|
|
|
147
147
|
const { pageContext, route, PageModule, HeadModule, LayoutModule } = resolved;
|
|
148
148
|
if (isJsonRequest) return Response.json(pageContext);
|
|
149
149
|
const { default: onRenderHtml } = await store.config.onRenderHtml();
|
|
150
|
-
const html =
|
|
150
|
+
const html = onRenderHtml({
|
|
151
151
|
pageContext,
|
|
152
152
|
Page: PageModule.Page ?? PageModule.default,
|
|
153
153
|
Head: HeadModule ? HeadModule.Head ?? HeadModule.default : void 0,
|