diff --git a/dashboards/tracker-web/playwright.config.ts b/dashboards/tracker-web/playwright.config.ts index eae09dcb..dd0cefbf 100644 --- a/dashboards/tracker-web/playwright.config.ts +++ b/dashboards/tracker-web/playwright.config.ts @@ -8,7 +8,7 @@ export default defineConfig({ workers: process.env.CI ? 1 : undefined, reporter: 'html', use: { - baseURL: 'http://localhost:3003', + baseURL: 'http://127.0.0.1:3103', trace: 'on-first-retry', }, projects: [ @@ -18,10 +18,10 @@ export default defineConfig({ }, ], webServer: { - command: 'npm run dev', - url: 'http://localhost:3003', - reuseExistingServer: !process.env.CI, - timeout: 30_000, + command: 'pnpm exec next dev --webpack --hostname 127.0.0.1 --port 3103', + url: 'http://127.0.0.1:3103', + reuseExistingServer: process.env.E2E_REUSE_SERVER === '1', + timeout: 60_000, // Provide the env vars /api/health requires so the health gate is deterministic. // These are non-secret placeholders only used to exercise the health handler. env: { diff --git a/dashboards/tracker-web/src/instrumentation.ts b/dashboards/tracker-web/src/instrumentation.ts index 148ceb30..07bad6ba 100644 --- a/dashboards/tracker-web/src/instrumentation.ts +++ b/dashboards/tracker-web/src/instrumentation.ts @@ -7,10 +7,9 @@ * shared Key Vault (kv-mywisprai) used by all ByteLyst products. */ -import { resolveSecrets, LYSNR_SECRETS } from '@bytelyst/config'; - export async function register() { if (process.env.NEXT_RUNTIME === 'nodejs') { + const { resolveSecrets, LYSNR_SECRETS } = await import('@bytelyst/config'); await resolveSecrets([LYSNR_SECRETS.JWT_SECRET]); } }