feat(stats): route stats app
This commit is contained in:
parent
0d67d659fc
commit
58da1ea48e
9 changed files with 62 additions and 16 deletions
|
|
@ -30,10 +30,7 @@ export default $config({
|
|||
async run() {
|
||||
const stage = await import("./infra/stage.js")
|
||||
await import("./infra/app.js")
|
||||
if (stage.deployAws) {
|
||||
await import("./infra/lake.js")
|
||||
await import("./infra/stats.js")
|
||||
}
|
||||
const stats = stage.deployAws ? await import("./infra/lake.js").then(() => import("./infra/stats.js")) : undefined
|
||||
const { stat } = await import("./infra/console.js")
|
||||
await import("./infra/enterprise.js")
|
||||
if ($app.stage === "production" || $app.stage === "vimtor") {
|
||||
|
|
@ -42,7 +39,7 @@ export default $config({
|
|||
|
||||
return {
|
||||
StatWorkerUrl: stat.url,
|
||||
// StatsUrl: stats.app.url,
|
||||
...(stats ? { StatsUrl: stats.app.url } : {}),
|
||||
AwsStage: stage.awsStage,
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue