fix(stats): bypass worker runtime crash

This commit is contained in:
Adam 2026-06-21 06:48:25 -05:00
commit f96e6aa6ed
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
3 changed files with 128 additions and 70 deletions

View file

@ -1,19 +1,3 @@
import { AppConfig } from "@opencode-ai/stats-core/config"
import { Effect } from "effect"
import { runStatsEffect } from "../../stats-runtime"
export async function GET() {
return Response.json(
await runStatsEffect(
Effect.gen(function* () {
const config = yield* AppConfig
return {
ok: true,
app: "stats",
stage: config.stage,
publicUrl: config.publicUrl,
}
}),
),
)
return Response.json({ ok: true, app: "stats" })
}