Skip to content

Commit 56aad43

Browse files
committed
use playwright env option
1 parent e2cfa74 commit 56aad43

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

e2e/react-start/basic-spa/playwright.config.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,16 @@ export default defineConfig({
2626
},
2727

2828
webServer: {
29-
command: `NODE_ENV=development VITE_EXTERNAL_PORT=${EXTERNAL_PORT} VITE_SERVER_PORT=${PORT} PORT=${PORT} pnpm run dev:e2e --port=${PORT}`,
29+
command: `pnpm run dev:e2e --port=${PORT}`,
3030
url: baseURL,
3131
reuseExistingServer: !process.env.CI,
3232
stdout: 'pipe',
33+
env: {
34+
NODE_ENV: 'development',
35+
VITE_EXTERNAL_PORT: String(EXTERNAL_PORT),
36+
VITE_SERVER_PORT: String(PORT),
37+
PORT: String(PORT),
38+
},
3339
},
3440

3541
projects: [

0 commit comments

Comments
 (0)