AI Resource Pro / website / open-next.config.ts
| 1 | import { defineCloudflareConfig } from "@opennextjs/cloudflare"; |
| 2 | import staticAssetsIncrementalCache from "@opennextjs/cloudflare/overrides/incremental-cache/static-assets-incremental-cache"; |
| 3 | |
| 4 | // The tutorial pages compile their MDX at build time. Serve that prerendered |
| 5 | // HTML and RSC payload from Workers Assets without evaluating MDX at runtime. |
| 6 | export default defineCloudflareConfig({ |
| 7 | incrementalCache: staticAssetsIncrementalCache, |
| 8 | enableCacheInterception: true, |
| 9 | }); |