Skip to content

Commit 2e15e26

Browse files
committed
adjust catchall
1 parent 867f7ef commit 2e15e26

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/adapter/build/routing.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

src/adapter/build/static-assets.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)