chore: migrate to OpenNext adapter for Cloudflare Pages (Next.js 16 support)

This commit is contained in:
2026-01-23 04:00:06 +07:00
parent c1e5db5bce
commit 019ecb2955
5 changed files with 13788 additions and 727 deletions

9
open-next.config.ts Normal file
View File

@@ -0,0 +1,9 @@
import { defineCloudflareConfig } from "@opennextjs/cloudflare";
export default defineCloudflareConfig({
// Uncomment to enable R2 cache,
// It should be imported as:
// `import r2IncrementalCache from "@opennextjs/cloudflare/overrides/incremental-cache/r2-incremental-cache";`
// See https://opennext.js.org/cloudflare/caching for more details
// incrementalCache: r2IncrementalCache,
});