mirror of
https://github.com/djdevin/recflare.git
synced 2026-10-26 07:28:53 -07:00
26270e9c25
* rrs stuff * studio service yay * rrs whitelist * moree studiooooooo fellowwww * rec room studio room loading yay * fixes yay * fix 2 because idk yayuh * Update cdn.app.ts * ccontent length fix? * Preserve content-length and upgrade metadata Return a real zero-filled byte array for CDN HEAD responses so the runtime preserves Content-Length while still sending no payload. In notify, re-create the Request with its original headers, set OWNER_HEADER from the validated token, and forward that Request to hub.fetch to avoid losing WebSocket upgrade metadata (which could trigger 500s in Durable Objects). These changes ensure the editor's size checks and WebSocket upgrades remain reliable. * fix x524234 * shirt thing? * [auth] remove grant table as we already have audit_log for now * rename table to generic device_grant * cleanup/lint --------- Co-authored-by: Devin Zuczek <devin.zuczek@gmail.com>
28 lines
1.0 KiB
TypeScript
28 lines
1.0 KiB
TypeScript
import type { HonoApp } from '@repo/hono-helpers'
|
|
import type { SharedHonoEnv, SharedHonoVariables } from '@repo/hono-helpers/src/types'
|
|
|
|
export type Env = SharedHonoEnv & {
|
|
/**
|
|
* Shared Secrets Store binding for the HS256 JWT signing key. Resolve the value with
|
|
* `await env.JWT_SECRET.get()`; every worker binds the same store, so tokens signed by
|
|
* `auth` verify here.
|
|
*/
|
|
JWT_SECRET: SecretsStoreSecret
|
|
// Shared `recflare` D1. Room ownership lives in the `room` blob (the `rooms`
|
|
// worker owns that schema) and who is standing where lives in `presence`.
|
|
// This worker migrates its own cloud-build tables (`studio_cloud_build`,
|
|
// `studio_unity_asset_file`) and only reads the room tables.
|
|
DB: D1Database
|
|
// Shared `recflare-cdn` bucket. Local Studio builds land under
|
|
// `studio-room-bundles/`. The same bucket name the rooms and cdn workers bind.
|
|
CDN_ASSETS: R2Bucket
|
|
}
|
|
|
|
/** Variables can be extended */
|
|
export type Variables = SharedHonoVariables
|
|
|
|
export interface App extends HonoApp {
|
|
Bindings: Env
|
|
Variables: Variables
|
|
}
|