test(tracker-web): isolate e2e dev server
This commit is contained in:
parent
e25969d5dc
commit
67104b8ebc
@ -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: {
|
||||
|
||||
@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user