Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions apps/web/wrangler.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,21 @@
// Server code that ships functions to the browser as source (the theme and
// scroll scripts) breaks under esbuild's name-keeping helper once minified.
"keep_names": false,
// The bundle's source maps are about 85 MB, above Cloudflare's 60 MiB limit.
"upload_source_maps": false,
// Prerendered pages are `page/index.html`: serve them at `/page`, as Node
// does, instead of redirecting to `/page/`.
"assets": { "html_handling": "drop-trailing-slash" },
"durable_objects": {
"bindings": [
// The realtime hub that owns every WebSocket. The binding name is fixed.
{ "name": "VITNODE_REALTIME", "class_name": "VitNodeRealtimeHub" }
]
{ "name": "VITNODE_REALTIME", "class_name": "VitNodeRealtimeHub" },
],
},
// SQLite-backed, so the hub keeps its rooms while it hibernates.
"migrations": [{ "tag": "v1", "new_sqlite_classes": ["VitNodeRealtimeHub"] }],
"vars": {
"VITNODE_INSTALLATION_ID": "default"
"VITNODE_INSTALLATION_ID": "default",
},
"observability": { "enabled": true }
"observability": { "enabled": true },
}
Loading