Skip to content

Commit 0f46859

Browse files
committed
docs: better handle trailing slash
1 parent 6f5cc58 commit 0f46859

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/nuxt.config.ts

+6
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ export default defineNuxtConfig({
2424
routeRules: {
2525
'/api/search.json': { prerender: true },
2626
},
27+
nitro: {
28+
prerender: {
29+
// For CF trailing slash issue
30+
autoSubfolderIndex: false
31+
}
32+
},
2733
cloudflareAnalytics: {
2834
token: '469b1f7049f14941acef0d0262a07ab3',
2935
scriptPath: false

0 commit comments

Comments
 (0)