fix(ci): free stale vite preview port before mock e2e.
CI / test (push) Successful in 4m25s
CI / push-image (push) Successful in 12m27s
CI / deploy-ift (push) Successful in 16s
CI / ci-done (push) Successful in 0s
CI / e2e-ift (push) Successful in 2m46s
CI / deploy-stage (push) Successful in 11m55s
CI / e2e-stage (push) Successful in 4m34s
CI / test (push) Successful in 4m25s
CI / push-image (push) Successful in 12m27s
CI / deploy-ift (push) Successful in 16s
CI / ci-done (push) Successful in 0s
CI / e2e-ift (push) Successful in 2m46s
CI / deploy-stage (push) Successful in 11m55s
CI / e2e-stage (push) Successful in 4m34s
Act hostexecutor leaves zombie preview (cwd deleted) on :4173 returning 404; Playwright waits for 2xx and times out. Refs EventHub/EventHubFrontAdmin#40 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -50,9 +50,12 @@ export default defineConfig({
|
||||
webServer: liveTarget
|
||||
? undefined
|
||||
: {
|
||||
command: `npm run preview -- --host 127.0.0.1 --port ${port}`,
|
||||
// strictPort: не молчать, если порт занят зомби act-preview
|
||||
command: `npm run preview -- --host 127.0.0.1 --port ${port} --strictPort`,
|
||||
url: baseURL,
|
||||
reuseExistingServer: !process.env.CI,
|
||||
timeout: 120_000,
|
||||
stdout: 'pipe',
|
||||
stderr: 'pipe',
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user