fix(stats): bypass worker runtime crash
This commit is contained in:
@@ -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" })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user