forked from baron/baron-sso
fix(adminfront): fix playwright webserver timeout by refining preview command and vite config
This commit is contained in:
@@ -85,9 +85,9 @@ export default defineConfig({
|
||||
? undefined
|
||||
: {
|
||||
command: process.env.CI
|
||||
? `pnpm run preview -- --port ${port}`
|
||||
: `pnpm run dev -- --host localhost --port ${port}`,
|
||||
url: `http://localhost:${port}`,
|
||||
? `pnpm exec vite preview --host 127.0.0.1 --port ${port} --strictPort`
|
||||
: `pnpm exec vite --host 127.0.0.1 --port ${port} --strictPort`,
|
||||
url: `http://127.0.0.1:${port}`,
|
||||
reuseExistingServer,
|
||||
timeout: 180 * 1000,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user