Fix redirection when not found
1 files changed, 2 insertions(+), 1 deletions(-) M src/server.ts
M src/server.ts => src/server.ts +2 -1
@@ 43,7 43,8 @@ function handler(req: Request) { }); } - return Response.redirect("/"); + const url = new URL(req.url); + return Response.redirect(url.origin); } serve(handler, {