|
3 | 3 | * https://developers.cloudflare.com/workers/wrangler/configuration/ |
4 | 4 | */ |
5 | 5 | { |
6 | | - "$schema": "node_modules/wrangler/config-schema.json", |
7 | | - "name": "cfsite", |
8 | | - "main": "src/index.js", |
9 | | - "compatibility_date": "2025-07-05", |
10 | | - "observability": { |
11 | | - "enabled": true |
12 | | - } |
13 | | - /** |
| 6 | + "$schema": "node_modules/wrangler/config-schema.json", |
| 7 | + "name": "cfsite", |
| 8 | + "main": "src/index.js", |
| 9 | + "compatibility_date": "2025-07-05", |
| 10 | + "observability": { |
| 11 | + "enabled": true, |
| 12 | + }, |
| 13 | + /** |
14 | 14 | * Smart Placement |
15 | 15 | * Docs: https://developers.cloudflare.com/workers/configuration/smart-placement/#smart-placement |
16 | 16 | */ |
17 | | - // "placement": { "mode": "smart" }, |
| 17 | + // "placement": { "mode": "smart" }, |
18 | 18 |
|
19 | | - /** |
| 19 | + /** |
20 | 20 | * Bindings |
21 | 21 | * Bindings allow your Worker to interact with resources on the Cloudflare Developer Platform, including |
22 | 22 | * databases, object storage, AI inference, real-time communication and more. |
23 | 23 | * https://developers.cloudflare.com/workers/runtime-apis/bindings/ |
24 | 24 | */ |
25 | 25 |
|
26 | | - /** |
| 26 | + /** |
27 | 27 | * Environment Variables |
28 | 28 | * https://developers.cloudflare.com/workers/wrangler/configuration/#environment-variables |
29 | 29 | */ |
30 | | - // "vars": { "MY_VARIABLE": "production_value" }, |
31 | | - /** |
| 30 | + // "vars": { "MY_VARIABLE": "production_value" }, |
| 31 | + /** |
32 | 32 | * Note: Use secrets to store sensitive data. |
33 | 33 | * https://developers.cloudflare.com/workers/configuration/secrets/ |
34 | 34 | */ |
35 | 35 |
|
36 | | - /** |
| 36 | + /** |
37 | 37 | * Static Assets |
38 | 38 | * https://developers.cloudflare.com/workers/static-assets/binding/ |
39 | 39 | */ |
40 | | - // "assets": { "directory": "./public/", "binding": "ASSETS" }, |
| 40 | + // "assets": { "directory": "./public/", "binding": "ASSETS" }, |
41 | 41 |
|
42 | | - /** |
| 42 | + /** |
43 | 43 | * Service Bindings (communicate between multiple Workers) |
44 | 44 | * https://developers.cloudflare.com/workers/wrangler/configuration/#service-bindings |
45 | 45 | */ |
46 | | - // "services": [{ "binding": "MY_SERVICE", "service": "my-service" }] |
| 46 | + // "services": [{ "binding": "MY_SERVICE", "service": "my-service" }] |
47 | 47 | } |
0 commit comments