[roomcomments] implement basic room comments

This commit is contained in:
Devin Zuczek
2026-08-20 19:00:22 -04:00
parent 062c07cc33
commit 655c7ee4d6
17 changed files with 15670 additions and 2 deletions
+25
View File
@@ -0,0 +1,25 @@
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` DB. This worker owns the `room_comment` table (schema/migration in
* `migrations/`, mirrored by `ROOM_COMMENT_SCHEMA_DDL` in `@repo/domain`); every other
* table on the database belongs to another worker.
*/
DB: D1Database
}
/** Variables can be extended */
export type Variables = SharedHonoVariables
export interface App extends HonoApp {
Bindings: Env
Variables: Variables
}