Skip to content

Commit afbbd60

Browse files
committed
fix: return 404 for missing build files 🐵
1 parent 9fa4d26 commit afbbd60

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ā€Žpackages/qwik-city/src/runtime/src/route-matcher.tsā€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ function matchRoutePart(
2323
pathIdx: number,
2424
pathLength: number
2525
): PathParams | null {
26+
if (path.startsWith('/build/')) {
27+
return null;
28+
}
29+
2630
let params: PathParams | null = null;
2731
while (routeIdx < routeLength) {
2832
const routeCh = route.charCodeAt(routeIdx++);

0 commit comments

Comments
Ā (0)