From d488a490dc2fee87c58adac7d63a85f5085faddd Mon Sep 17 00:00:00 2001 From: David Mears Date: Fri, 2 Aug 2024 17:08:35 +0100 Subject: [PATCH] Use production mode for playwright web server --- playwright.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playwright.config.ts b/playwright.config.ts index 2aca6d38..da4d213f 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -75,7 +75,7 @@ export default defineConfig({ /* Run your local dev server before starting the tests */ // Multiple web servers (or background processes) can be launched: https://playwright.dev/docs/api/class-testconfig#test-config-web-server webServer: { - command: 'NUXT_HOST="127.0.0.1" NUXT_PORT="3000" npm run dev', + command: "npm run build && cd .output && node ./server/index.mjs", url: "http://127.0.0.1:3000", timeout: 120 * 1000, reuseExistingServer: !process.env.CI,