fix(stats): restore worker runtime

This commit is contained in:
Adam
2026-06-21 06:16:02 -05:00
parent 418a9e4e66
commit c0dc6e50a7
5 changed files with 20 additions and 8 deletions
+2 -2
View File
@@ -21,7 +21,6 @@ import {
type TokenCostEntry,
type UsagePoint,
} from "@opencode-ai/stats-core/domain/home"
import { runtime } from "@opencode-ai/stats-core/runtime"
import { createAsync, query } from "@solidjs/router"
import { createEffect, createMemo, createSignal, For, onCleanup, onMount, Show, type JSX } from "solid-js"
import { getRequestEvent } from "solid-js/web"
@@ -109,7 +108,8 @@ const worldBorderPath = worldPath(mesh(worldTopology, worldCountryGeometries, (a
const getData = query(async () => {
"use server"
return runtime.runPromise(getStatsHomeData())
const { statsRuntime } = await import("../stats-runtime")
return statsRuntime.runPromise(getStatsHomeData())
}, "getStatsHomeData")
export default function StatsHome() {