mirror of
https://github.com/djdevin/recflare.git
synced 2026-09-08 22:51:30 -07:00
move presence to d1
This commit is contained in:
@@ -6,12 +6,11 @@ export type Env = SharedHonoEnv & {
|
||||
// with `await env.JWT_SECRET.get()`; all workers bind the same store so tokens
|
||||
// signed by `auth` verify here.
|
||||
JWT_SECRET: SecretsStoreSecret
|
||||
// Per-player presence (the room instance they're currently in). Written by
|
||||
// matchmake/goto, read by the heartbeat, cleared on login — mirrors the
|
||||
// reference server's HeartbeatDB.
|
||||
RECFLARE_MATCH_PRESENCE: KVNamespace
|
||||
// Shared rooms DB (owned by the `rooms` worker). Read-only here to resolve a
|
||||
// room's real scene/subroom when matchmaking into it.
|
||||
// Shared `recflare` DB. Resolves room scenes for matchmaking (read), writes a
|
||||
// player's personal dorm room on first entry, and holds player presence — the
|
||||
// room instance each player is currently in (written by matchmake/heartbeat,
|
||||
// read by the heartbeat and the batch `/player` lookup). See @repo/domain's
|
||||
// presence-db (table owned/migrated by the `rooms` worker).
|
||||
DB: D1Database
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user