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,
|
workers: process.env.CI ? 1 : undefined,
|
||||||
reporter: 'html',
|
reporter: 'html',
|
||||||
use: {
|
use: {
|
||||||
baseURL: 'http://localhost:3003',
|
baseURL: 'http://127.0.0.1:3103',
|
||||||
trace: 'on-first-retry',
|
trace: 'on-first-retry',
|
||||||
},
|
},
|
||||||
projects: [
|
projects: [
|
||||||
@ -18,10 +18,10 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
webServer: {
|
webServer: {
|
||||||
command: 'npm run dev',
|
command: 'pnpm exec next dev --webpack --hostname 127.0.0.1 --port 3103',
|
||||||
url: 'http://localhost:3003',
|
url: 'http://127.0.0.1:3103',
|
||||||
reuseExistingServer: !process.env.CI,
|
reuseExistingServer: process.env.E2E_REUSE_SERVER === '1',
|
||||||
timeout: 30_000,
|
timeout: 60_000,
|
||||||
// Provide the env vars /api/health requires so the health gate is deterministic.
|
// 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.
|
// These are non-secret placeholders only used to exercise the health handler.
|
||||||
env: {
|
env: {
|
||||||
|
|||||||
@ -7,10 +7,9 @@
|
|||||||
* shared Key Vault (kv-mywisprai) used by all ByteLyst products.
|
* shared Key Vault (kv-mywisprai) used by all ByteLyst products.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { resolveSecrets, LYSNR_SECRETS } from '@bytelyst/config';
|
|
||||||
|
|
||||||
export async function register() {
|
export async function register() {
|
||||||
if (process.env.NEXT_RUNTIME === 'nodejs') {
|
if (process.env.NEXT_RUNTIME === 'nodejs') {
|
||||||
|
const { resolveSecrets, LYSNR_SECRETS } = await import('@bytelyst/config');
|
||||||
await resolveSecrets([LYSNR_SECRETS.JWT_SECRET]);
|
await resolveSecrets([LYSNR_SECRETS.JWT_SECRET]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user