Fix incorrect validation of route

This commit is contained in:
Jesse Wierzbinski 2024-04-14 02:03:22 -10:00
parent 86dd0eb7ef
commit f94fffd434
No known key found for this signature in database

View file

@ -122,11 +122,7 @@ export const createServer = (
console.log(matchedRoute);
if (
matchedRoute &&
Object.keys(matchedRoute).length !== 0 &&
matchedRoute.name !== "/[...404]"
) {
if (matchedRoute?.filePath && matchedRoute.name !== "/[...404]") {
return await processRoute(matchedRoute, req, logger);
}