Skip to content

Commit 47b7577

Browse files
committed
Add wrangler.jsonc
1 parent 001931b commit 47b7577

1 file changed

Lines changed: 51 additions & 0 deletions

File tree

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/**
2+
* For more details on how to configure Wrangler, refer to:
3+
* https://developers.cloudflare.com/workers/wrangler/configuration/
4+
*/
5+
{
6+
"$schema": "node_modules/wrangler/config-schema.json",
7+
"name": "cache-handlers",
8+
"main": "./dist/_worker.js/index.js",
9+
"compatibility_date": "2025-08-23",
10+
"compatibility_flags": [
11+
"nodejs_compat",
12+
"global_fetch_strictly_public"
13+
],
14+
"assets": {
15+
"binding": "ASSETS",
16+
"directory": "./dist"
17+
},
18+
"observability": {
19+
"enabled": true
20+
}
21+
/**
22+
* Smart Placement
23+
* Docs: https://developers.cloudflare.com/workers/configuration/smart-placement/#smart-placement
24+
*/
25+
// "placement": { "mode": "smart" }
26+
/**
27+
* Bindings
28+
* Bindings allow your Worker to interact with resources on the Cloudflare Developer Platform, including
29+
* databases, object storage, AI inference, real-time communication and more.
30+
* https://developers.cloudflare.com/workers/runtime-apis/bindings/
31+
*/
32+
/**
33+
* Environment Variables
34+
* https://developers.cloudflare.com/workers/wrangler/configuration/#environment-variables
35+
*/
36+
// "vars": { "MY_VARIABLE": "production_value" }
37+
/**
38+
* Note: Use secrets to store sensitive data.
39+
* https://developers.cloudflare.com/workers/configuration/secrets/
40+
*/
41+
/**
42+
* Static Assets
43+
* https://developers.cloudflare.com/workers/static-assets/binding/
44+
*/
45+
// "assets": { "directory": "./public/", "binding": "ASSETS" }
46+
/**
47+
* Service Bindings (communicate between multiple Workers)
48+
* https://developers.cloudflare.com/workers/wrangler/configuration/#service-bindings
49+
*/
50+
// "services": [{ "binding": "MY_SERVICE", "service": "my-service" }]
51+
}

0 commit comments

Comments
 (0)