Skip to content

Commit 867f7ef

Browse files
committed
missing src path for __next_data_catchall
1 parent ac23f0d commit 867f7ef

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/adapter/build/routing.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,13 @@ export async function generateRoutingRules(
527527
// if middleware + pages
528528
description: 'Apply __next_data_catchall rewrite if middleware + pages',
529529
match: {
530-
path: ``,
530+
path: `^${join(
531+
'/',
532+
nextAdapterContext.config.basePath,
533+
'/_next/data/',
534+
escapedBuildId,
535+
'/(.*).json',
536+
)}`,
531537
},
532538
apply: {
533539
type: 'rewrite',

0 commit comments

Comments
 (0)