diff --git a/web-app/src/config.ts b/web-app/src/config.ts index e36e364..fffa964 100644 --- a/web-app/src/config.ts +++ b/web-app/src/config.ts @@ -19,8 +19,10 @@ interface DeploymentsLocal { infrastructure?: DeploymentInfrastructure; } -// deployments-local.json is gitignored (local dev only); fall back to empty if absent (CI, production) -const _localFiles = import.meta.glob('../../onchain/deployments-local.json', { +// deployments-local.json is gitignored (generated per-run by bootstrap scripts). +// Use a glob pattern (brace expansion) so Vite treats it as dynamic — returns {} +// when the file is absent (CI, production) instead of a hard import error. +const _localFiles = import.meta.glob('../../onchain/deployments-local{.json}', { eager: true, import: 'default', });