Skip to content
File

Blob: worker/wrangler.jsonc

894 bytes
1{
2 "$schema": "./node_modules/wrangler/config-schema.json",
3 "name": "esp32-radio",
4 "main": "src/server/index.ts",
5 "compatibility_date": "2026-09-12",
6 "workers_dev": false,
7 "preview_urls": false,
8 "routes": [{ "pattern": "esp32.chens.link", "custom_domain": true }],
9 "observability": {
10 "enabled": true,
11 "logs": { "enabled": true, "invocation_logs": false, "head_sampling_rate": 1 },
12 },
13 "assets": { "binding": "ASSETS", "run_worker_first": ["/api/*"] },
14 "durable_objects": { "bindings": [{ "name": "ROBOTS", "class_name": "RobotRoom" }] },
15 "migrations": [{ "tag": "v1", "new_sqlite_classes": ["RobotRoom"] }],
16 "vars": { "ROBOT_NAME": "s3-90e5b1d0c0e4" },
17 "secrets": {
18 "required": ["REALTIME_APP_ID", "REALTIME_APP_TOKEN", "DEVICE_TOKEN", "VIEWER_PASSWORD"],
19 },
20 // Production secrets: REALTIME_APP_ID, REALTIME_APP_TOKEN, DEVICE_TOKEN, VIEWER_PASSWORD.
21}