Skip to content

Commit 38b27b5

Browse files
committed
chore: nitro設定にCloudflare Pagesのルーティング除外とWrangler互換性設定を追加
1 parent 6e95a9b commit 38b27b5

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

nuxt.config.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,24 @@ export default defineNuxtConfig({
9797

9898
nitro: {
9999
preset: 'cloudflare-pages',
100+
cloudflare: {
101+
pages: {
102+
routes: {
103+
exclude: ['/docs/*', '/blog/*', '/news/*', '/links', '/about', '/privacy-policy', '/404.html', '/']
104+
}
105+
},
106+
wrangler: {
107+
compatibility_date: '2025-01-20',
108+
compatibility_flags: ['nodejs_compat']
109+
}
110+
},
111+
100112
esbuild: {
101113
options: {
102114
target: 'es2022'
103115
}
104116
},
117+
105118
prerender: {
106119
crawlLinks: true,
107120
routes: [

0 commit comments

Comments
 (0)