mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-05-02 02:23:56 +00:00
Add RoomRegistry durable object for tracking public rooms with stale-entry cleanup. GameRoom notifies the registry on connect, disconnect, and creation. Extract duplicated CORS_HEADERS to a shared cors.ts module and remove dead OPTIONS handlers from DOs. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
23 lines
401 B
TOML
23 lines
401 B
TOML
name = "isle-relay"
|
|
main = "relay.ts"
|
|
compatibility_date = "2024-01-01"
|
|
workers_dev = false
|
|
preview_urls = false
|
|
|
|
[durable_objects]
|
|
bindings = [
|
|
{ name = "GAME_ROOM", class_name = "GameRoom" },
|
|
{ name = "ROOM_REGISTRY", class_name = "RoomRegistry" }
|
|
]
|
|
|
|
[vars]
|
|
MAX_PLAYERS_CEILING = 64
|
|
|
|
[[migrations]]
|
|
tag = "v1"
|
|
new_classes = ["GameRoom"]
|
|
|
|
[[migrations]]
|
|
tag = "v2"
|
|
new_classes = ["RoomRegistry"]
|