fix(stats): inline worker runtime import
This commit is contained in:
@@ -26,6 +26,7 @@ import {
|
||||
type ModelCatalogCost,
|
||||
type ModelCatalogEntry,
|
||||
} from "../model-catalog"
|
||||
import { statsRuntime } from "../../stats-runtime"
|
||||
import {
|
||||
applyThemePreference,
|
||||
Footer,
|
||||
@@ -95,7 +96,6 @@ const worldBorderPath = worldPath(mesh(worldTopology, worldCountryGeometries, (a
|
||||
|
||||
const getModelData = query(async (lab: string, model: string) => {
|
||||
"use server"
|
||||
const { statsRuntime } = await import("../../stats-runtime")
|
||||
return statsRuntime.runPromise(getStatsModelData(model, lab))
|
||||
}, "getStatsModelData")
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@ import {
|
||||
type ModelCatalogEntry,
|
||||
type ModelCatalogLab,
|
||||
} from "../model-catalog"
|
||||
import { statsRuntime } from "../../stats-runtime"
|
||||
import {
|
||||
applyThemePreference,
|
||||
Footer,
|
||||
@@ -45,7 +46,6 @@ const labFooterLinks: readonly HeaderLink[] = [
|
||||
|
||||
const getLabData = query(async (lab: string) => {
|
||||
"use server"
|
||||
const { statsRuntime } = await import("../../stats-runtime")
|
||||
return statsRuntime.runPromise(getStatsLabData(lab))
|
||||
}, "getStatsLabData")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user