Files
recflare/apps/leaderboard/src/context.ts
T
devin a12ff24068 Leaderboards (#43)
* leaderboards

* [leaderboard] add basic leaderboards - will probably have to clean up later but data is collected now
2026-08-26 01:04:27 -04:00

22 lines
672 B
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 database; this worker owns the `leaderboard` table. */
DB: D1Database
}
/** Variables can be extended */
export type Variables = SharedHonoVariables
export interface App extends HonoApp {
Bindings: Env
Variables: Variables
}