From d9701ae17393644fe5d5dae489760497777b77c1 Mon Sep 17 00:00:00 2001 From: Matt Kane Date: Fri, 8 Sep 2023 16:08:07 +0100 Subject: [PATCH] fix: ignore query string when routing (#27) --- packages/core/src/dev.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/dev.ts b/packages/core/src/dev.ts index 0d0e595..0a03bfe 100644 --- a/packages/core/src/dev.ts +++ b/packages/core/src/dev.ts @@ -69,7 +69,7 @@ export async function createServer() { const router = routerForModules(routeModules); - const result = router.lookup(req.originalUrl); + const result = router.lookup(req.path); if (!result) { res.status(404).end("404");