feat: add DISABLE_WEB_SERVER env var to skip web server

This commit is contained in:
张翔
2026-03-12 22:15:17 +08:00
parent b7cf440b71
commit 95d3758b51
+1 -1
View File
@@ -101,7 +101,7 @@ export default defineConfig({
testMatch: /.*\.pwa\.spec\.ts/, testMatch: /.*\.pwa\.spec\.ts/,
}, },
], ],
webServer: env.name === 'development' ? { webServer: env.name === 'development' && !process.env.DISABLE_WEB_SERVER ? {
command: 'cd .. && npm run dev', command: 'cd .. && npm run dev',
url: 'http://localhost:3000', url: 'http://localhost:3000',
timeout: 120000, timeout: 120000,