frosty/web/wrangler.jsonc
2026-02-17 20:31:56 -08:00

42 lines
1.2 KiB
JSON

{
"$schema": "node_modules/wrangler/config-schema.json",
"main": ".open-next/worker.js",
"name": "frosty-web",
"compatibility_date": "2026-02-14",
"compatibility_flags": [
// Enable Node.js API
// see https://developers.cloudflare.com/workers/configuration/compatibility-flags/#nodejs-compatibility-flag
"nodejs_compat",
// Allow to fetch URLs in your app
// see https://developers.cloudflare.com/workers/configuration/compatibility-flags/#global-fetch-strictly-public
"global_fetch_strictly_public",
],
"assets": {
"directory": ".open-next/assets",
"binding": "ASSETS",
},
"services": [
{
"binding": "WORKER_SELF_REFERENCE",
// The service should match the "name" of your worker
"service": "frosty-web",
},
],
// Create a R2 binding with the binding name "NEXT_INC_CACHE_R2_BUCKET"
// "r2_buckets": [
// {
// "binding": "NEXT_INC_CACHE_R2_BUCKET",
// "bucket_name": "<BUCKET_NAME>",
// },
// ],
"images": {
// Enable image optimization
// see https://opennext.js.org/cloudflare/howtos/image
"binding": "IMAGES",
},
"minify": true,
"keep_vars": true,
"observability": {
"enabled": true,
},
}