- Remove unsupported next: { revalidate } option from API routes
- Add Cloudflare-specific cache configuration (cf.cacheTtl)
- Add User-Agent and Referer headers to bypass Plan API 403 errors
- Enable workers_dev and preview_urls in wrangler.jsonc to prevent disabling on deployment
30 lines
748 B
JSON
30 lines
748 B
JSON
/**
|
|
* 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": "minecraft-website",
|
|
"main": ".open-next/worker.js",
|
|
"compatibility_date": "2025-03-01",
|
|
"compatibility_flags": [
|
|
"nodejs_compat",
|
|
"global_fetch_strictly_public"
|
|
],
|
|
"assets": {
|
|
"binding": "ASSETS",
|
|
"directory": ".open-next/assets"
|
|
},
|
|
"routes": [
|
|
{
|
|
"pattern": "minecraft.biohazardvfx.com/*",
|
|
"zone_name": "biohazardvfx.com"
|
|
}
|
|
],
|
|
"workers_dev": true,
|
|
"preview_urls": true,
|
|
"observability": {
|
|
"enabled": true
|
|
}
|
|
}
|