mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-01-03 06:42:27 +08:00
* docs(cloudflare): add detailed Cloudflare Workers + R2 deploy guide * separated cloudflare deploy guide from readme.md * Missing R2 bucket binding for incremental cache * docs: move Cloudflare guide to docs/ and improve documentation - Move Cloudflare_Deploy.md to docs/ folder - Add 'Deploy without R2' option for simple/free deployments - Add workers.dev subdomain registration instructions - Add missing global_fetch_strictly_public flag - Add troubleshooting for common deployment issues - Update README.md link to new location * fix: conditional import for cloudflare dev and regenerate lockfile - Use dynamic import for @opennextjs/cloudflare to avoid loading workerd during builds - Regenerate package-lock.json with cross-platform dependencies * fix: use main lockfile with cloudflare deps added - Use main branch's package-lock.json as base to ensure cross-platform deps - Add @opennextjs/cloudflare and wrangler --------- Co-authored-by: dayuan.jiang <jdy.toh@gmail.com>
24 lines
676 B
JSON
24 lines
676 B
JSON
{
|
|
"$schema": "node_modules/wrangler/config-schema.json",
|
|
"main": ".open-next/worker.js",
|
|
"name": "next-ai-draw-io-worker",
|
|
"compatibility_date": "2025-12-08", // must be a today or past compatibility_date
|
|
"compatibility_flags": ["nodejs_compat", "global_fetch_strictly_public"],
|
|
"assets": {
|
|
"directory": ".open-next/assets",
|
|
"binding": "ASSETS"
|
|
},
|
|
"r2_buckets": [
|
|
{
|
|
"binding": "NEXT_INC_CACHE_R2_BUCKET",
|
|
"bucket_name": "next-inc-cache"
|
|
}
|
|
],
|
|
"services": [
|
|
{
|
|
"binding": "WORKER_SELF_REFERENCE",
|
|
"service": "next-ai-draw-io-worker"
|
|
}
|
|
]
|
|
}
|