@@ -5,9 +5,17 @@ export default defineNuxtConfig({
55
66 plugins : [ '~/plugins/ai-elements' ] ,
77
8+ experimental : {
9+ payloadExtraction : false ,
10+ } ,
11+
812 mdc : {
913 highlight : {
1014 shikiEngine : 'javascript' ,
15+ theme : {
16+ default : 'github-light' ,
17+ dark : 'github-dark' ,
18+ } ,
1119 } ,
1220 } ,
1321
@@ -39,10 +47,14 @@ export default defineNuxtConfig({
3947 transpile : [ '@repo/examples' ] ,
4048 } ,
4149
42- compatibilityDate : '2024-07-06 ' ,
50+ compatibilityDate : '2024-09-19 ' ,
4351
4452 sourcemap : false ,
4553
54+ routeRules : {
55+ '/**' : { prerender : true } ,
56+ } ,
57+
4658 vite : {
4759 build : {
4860 sourcemap : false ,
@@ -64,12 +76,24 @@ export default defineNuxtConfig({
6476 } ,
6577
6678 nitro : {
67- preset : 'cloudflare-module' ,
68- } ,
69-
70- alias : {
71- // Replace Playwright with a mock to bypass Cloudflare build restrictions.
72- 'playwright-core' : 'unenv/mock/proxy' ,
73- 'playwright' : 'unenv/mock/proxy' ,
79+ preset : 'cloudflare_pages' ,
80+ cloudflare : {
81+ deployConfig : false ,
82+ nodeCompat : true ,
83+ pages : {
84+ routes : {
85+ include : [ '/*' ] ,
86+ exclude : [ '/api/_mdc/*' ] ,
87+ } ,
88+ } ,
89+ } ,
90+ prerender : {
91+ crawlLinks : true ,
92+ autoSubfolderIndex : false ,
93+ failOnError : true ,
94+ } ,
95+ storage : {
96+ cache : { driver : 'memory' } ,
97+ } ,
7498 } ,
7599} )
0 commit comments