Skip to content

Commit

Permalink
Use production mode for playwright web server
Browse files Browse the repository at this point in the history
  • Loading branch information
david-mears-2 committed Aug 2, 2024
1 parent 79df865 commit d488a49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d488a49

Please sign in to comment.