full site update

This commit is contained in:
2025-07-24 18:46:24 +02:00
parent bfe2b90d8d
commit 37a6e0ab31
6912 changed files with 540482 additions and 361712 deletions

View File

@@ -5,7 +5,7 @@ import { handle500Response } from "./response.js";
import { handleRoute, matchRoute } from "./route.js";
async function handleRequest({
pipeline,
manifestData,
routesList,
controller,
incomingRequest,
incomingResponse
@@ -17,7 +17,7 @@ async function handleRequest({
if (config.trailingSlash === "never" && !incomingRequest.url) {
pathname = "";
} else {
pathname = url.pathname;
pathname = decodeURI(url.pathname);
}
url.pathname = removeTrailingForwardSlash(config.base) + url.pathname;
let body = void 0;
@@ -35,7 +35,7 @@ async function handleRequest({
controller,
pathname,
async run() {
const matchedRoute = await matchRoute(pathname, manifestData, pipeline);
const matchedRoute = await matchRoute(pathname, routesList, pipeline);
const resolvedPathname = matchedRoute?.resolvedPathname ?? pathname;
return await handleRoute({
matchedRoute,
@@ -43,7 +43,7 @@ async function handleRequest({
pathname: resolvedPathname,
body,
pipeline,
manifestData,
routesList,
incomingRequest,
incomingResponse
});