{ "$schema": "node_modules/wrangler/config-schema.json", "name": "commonroom-turn", "main": "src/index.ts", "compatibility_date": "2026-08-01", "observability": { "enabled": true }, "vars": { // Origins allowed to call this Worker. Replace with your deployed page — // e.g. "https://concept-collection.github.io" — keeping localhost for // `npm run dev`. "*" allows any origin. "ALLOWED_ORIGINS": "http://localhost:5173,https://concept-collection.github.io", // Lifetime of an issued credential, in seconds. Credentials are shared // with the whole room, so this is also how long a leaked one stays useful. "CREDENTIAL_TTL": "21600" } // Secrets (set with `npx wrangler secret put `, never committed): // TURN_KEY_ID — from the Cloudflare dashboard, Realtime -> TURN // TURN_KEY_API_TOKEN — the API token paired with that TURN key // ROOM_TOKENS — tokens you hand to people, comma-separated }