mirror of
https://github.com/tiennm99/rplace.git
synced 2026-10-11 03:13:48 +00:00
Replace Next.js + SSE with Svelte frontend + Hono API + Durable Objects WebSocket on Cloudflare Workers. Single worker serves static assets and API routes. Native WebSocket replaces SSE polling for real-time updates. 17kb gzipped client bundle vs 90kb+ React runtime.
27 lines
428 B
JSON
27 lines
428 B
JSON
{
|
|
"name": "rplace",
|
|
"main": "src/worker.js",
|
|
"compatibility_date": "2025-04-01",
|
|
"assets": {
|
|
"directory": "dist"
|
|
},
|
|
"durable_objects": {
|
|
"bindings": [
|
|
{
|
|
"name": "CANVAS_ROOM",
|
|
"class_name": "CanvasRoom"
|
|
}
|
|
]
|
|
},
|
|
"migrations": [
|
|
{
|
|
"tag": "v1",
|
|
"new_classes": ["CanvasRoom"]
|
|
}
|
|
],
|
|
"vars": {
|
|
"CANVAS_WIDTH": "2048",
|
|
"CANVAS_HEIGHT": "2048"
|
|
}
|
|
}
|