Reuse published photo variants and deploy the validated build
This commit is contained in:
parent
0afd149382
commit
8dbea46ddb
1 changed files with 226 additions and 29 deletions
|
|
@ -8,7 +8,10 @@ export default defineConfig({
|
|||
trace: 'on-first-retry',
|
||||
},
|
||||
webServer: {
|
||||
command: 'npm run build && npx vite preview --host 127.0.0.1',
|
||||
command:
|
||||
process.env.PLAYWRIGHT_USE_EXISTING_BUILD === '1'
|
||||
? 'npx vite preview --host 127.0.0.1'
|
||||
: 'npm run build && npx vite preview --host 127.0.0.1',
|
||||
url: 'http://127.0.0.1:4173',
|
||||
reuseExistingServer: !process.env.CI,
|
||||
timeout: 120_000,
|
||||
|
|
|
|||
Loading…
Reference in a new issue