add max rooms and clubs per account

This commit is contained in:
Devin Zuczek
2026-07-21 16:49:57 -04:00
parent c853cc1c6f
commit 40c38d7a18
11 changed files with 226 additions and 16 deletions
+6
View File
@@ -8,6 +8,12 @@ export type Env = SharedHonoEnv & {
JWT_SECRET: SecretsStoreSecret
// Shared `recflare` D1 database holding the club / club_member tables. See clubs-db.ts.
DB: D1Database
// How many clubs one account may create (optional). Unset falls back to
// DEFAULT_MAX_CLUBS_PER_ACCOUNT in clubs.app.ts; 0 lifts the cap. Typed
// `string | number` because a var declared in wrangler.jsonc `vars` arrives as a
// number while the same var set from the dashboard or `--var` arrives as a string —
// read it through `intVar`, never as a bare number.
MAX_CLUBS_PER_ACCOUNT?: string | number
// add additional Bindings here
}