Skip to content

Commit 8afd1c8

Browse files
committed
fix(core): skip BC route resolution for 404 path
1 parent 06fd9aa commit 8afd1c8

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { notFound } from 'next/navigation';
22

33
export default function CatchAllPage() {
4+
console.log('CatchAllPage CALLED');
45
notFound();
56
}

core/middlewares/with-routes.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,9 @@ const getRouteInfo = async (request: NextRequest, event: NextFetchEvent) => {
288288
export const withRoutes: MiddlewareFactory = () => {
289289
// eslint-disable-next-line complexity
290290
return async (request, event) => {
291+
// eslint-disable-next-line no-console
292+
console.log('withRoutes CALLED', request.url);
293+
291294
const locale = request.headers.get('x-bc-locale') ?? '';
292295

293296
const { route, status } = await getRouteInfo(request, event);

0 commit comments

Comments
 (0)