vike-lite 1.9.0 → 1.9.1
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/server.d.mts +1 -1
- package/dist/server.mjs +1 -1
- package/package.json +1 -1
package/dist/server.d.mts
CHANGED
package/dist/server.mjs
CHANGED
|
@@ -132,7 +132,7 @@ async function renderErrorPage(req, status, urlPathname, error, nonce) {
|
|
|
132
132
|
return new Response(status === 404 ? "Not Found" : "Internal Server Error", { status });
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
|
-
async function renderPage(req, { nonce }) {
|
|
135
|
+
async function renderPage(req, { nonce } = {}) {
|
|
136
136
|
let { pathname } = new URL(req.url);
|
|
137
137
|
if (BASE_URL !== "/") {
|
|
138
138
|
const baseSlashed = BASE_URL.endsWith("/") ? BASE_URL : BASE_URL + "/";
|