mirror of
https://github.com/nihonbuzz/nihonbuzz.git
synced 2026-01-26 05:15:36 +07:00
chore: migrate to OpenNext adapter for Cloudflare Pages (Next.js 16 support)
This commit is contained in:
34
wrangler.jsonc
Normal file
34
wrangler.jsonc
Normal file
@@ -0,0 +1,34 @@
|
||||
/**
|
||||
* For more details on how to configure Wrangler, refer to:
|
||||
* https://developers.cloudflare.com/workers/wrangler/configuration/
|
||||
*/
|
||||
{
|
||||
"$schema": "node_modules/wrangler/config-schema.json",
|
||||
"name": "nihonbuzz",
|
||||
"main": ".open-next/worker.js",
|
||||
"compatibility_date": "2025-12-01",
|
||||
"compatibility_flags": [
|
||||
"nodejs_compat",
|
||||
"global_fetch_strictly_public"
|
||||
],
|
||||
"assets": {
|
||||
"binding": "ASSETS",
|
||||
"directory": ".open-next/assets"
|
||||
},
|
||||
"images": {
|
||||
// Enable image optimization
|
||||
// see https://opennext.js.org/cloudflare/howtos/image
|
||||
"binding": "IMAGES"
|
||||
},
|
||||
"services": [
|
||||
{
|
||||
// Self-reference service binding, the service name must match the worker name
|
||||
// see https://opennext.js.org/cloudflare/caching
|
||||
"binding": "WORKER_SELF_REFERENCE",
|
||||
"service": "nihonbuzz"
|
||||
}
|
||||
],
|
||||
"observability": {
|
||||
"enabled": true
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user