infra: stats

This commit is contained in:
Frank 2026-06-02 02:41:33 -04:00
commit 90d85636e0
3 changed files with 49 additions and 9 deletions

View file

@ -30,7 +30,8 @@ export default $config({
async run() {
const stage = await import("./infra/stage.js")
await import("./infra/app.js")
const stats = stage.deployAws ? await import("./infra/lake.js").then(() => import("./infra/stats.js")) : undefined
const lake = stage.deployAws ? await import("./infra/lake.js") : undefined
const stats = stage.deployAws ? await import("./infra/stats.js") : undefined
const { stat } = await import("./infra/console.js")
await import("./infra/enterprise.js")
if ($app.stage === "production" || $app.stage === "vimtor") {
@ -40,6 +41,12 @@ export default $config({
return {
StatWorkerUrl: stat.url,
...(stats ? { StatsUrl: stats.app.url } : {}),
...(lake
? {
LakeUrl: lake.lakeIngest.properties.url,
LakeSecretName: lake.lakeIngestSecret.name,
}
: {}),
AwsStage: stage.awsStage,
}
},