File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -537,7 +537,7 @@ export async function generateRoutingRules(
537537 } ,
538538 apply : {
539539 type : 'rewrite' ,
540- destination : '__next_data_catchall' ,
540+ destination : '/ __next_data_catchall.json ' ,
541541 statusCode : 200 ,
542542 } ,
543543 } satisfies RoutingRule ,
Original file line number Diff line number Diff line change @@ -76,8 +76,6 @@ export async function onBuildComplete(
7676 if ( hasMiddleware && hasPages ) {
7777 // create empty __next_data_catchall json file used for fully static pages
7878 await writeFile ( join ( NEXT_RUNTIME_STATIC_ASSETS , '__next_data_catchall.json' ) , '{}' )
79- netlifyAdapterContext . preparedOutputs . staticAssets . push ( '__next_data_catchall.json' )
80- netlifyAdapterContext . preparedOutputs . staticAssetsAliases . __next_data_catchall =
81- '__next_data_catchall.json'
79+ netlifyAdapterContext . preparedOutputs . staticAssets . push ( '/__next_data_catchall.json' )
8280 }
8381}
You can’t perform that action at this time.
0 commit comments