forked from cloudflare/capnweb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwrangler.jsonc
More file actions
34 lines (34 loc) · 1.28 KB
/
Copy pathwrangler.jsonc
File metadata and controls
34 lines (34 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
"$schema": "../../node_modules/wrangler/config-schema.json",
"name": "capnweb-react-example",
// Generated by `capnweb-validate build` before Wrangler starts.
"main": ".wrangler/validate/worker.ts",
"compatibility_date": "2024-09-01",
"alias": {
"capnweb": "../../dist/index-workers.js",
"capnweb-validate": "../../packages/capnweb-validate/dist/index.mjs",
"capnweb-validate/capnweb": "../../packages/capnweb-validate/dist/capnweb.mjs",
"capnweb-validate/internal": "../../packages/capnweb-validate/dist/internal/runtime.mjs",
"capnweb-validate/internal/core": "../../packages/capnweb-validate/dist/internal/core.mjs",
"capnweb-validate/internal/capnweb": "../../packages/capnweb-validate/dist/internal/capnweb.mjs"
},
"build": {
"command": "mkdir -p client/dist && node ../../packages/capnweb-validate/dist/cli.cjs build --cwd server --out ../.wrangler/validate",
"watch_dir": "server"
},
"assets": {
"directory": "client/dist"
},
"observability": {
"enabled": true
},
"vars": {
// Optional per-method artificial delays (ms)
"DELAY_AUTH_MS": 80,
"DELAY_PROFILE_MS": 120,
"DELAY_NOTIFS_MS": 120,
// Optional simulated network latency per direction (ms)
"SIMULATED_RTT_MS": 120,
"SIMULATED_RTT_JITTER_MS": 40
}
}