From ee6acbbfb25a5c5ac11309c42967d789dc5392b3 Mon Sep 17 00:00:00 2001 From: Alex Kern Date: Mon, 30 Jun 2025 21:38:42 -0700 Subject: [PATCH] Configure playwright web server for container --- playwright.config.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/playwright.config.ts b/playwright.config.ts index 659df21..82f274a 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -3,9 +3,13 @@ import { defineConfig } from '@playwright/test' export default defineConfig({ testDir: './tests/e2e', webServer: { - command: 'PORT=4100 node .next/standalone/server.js', + command: 'HOSTNAME=127.0.0.1 PORT=4100 node .next/standalone/server.js', port: 4100, timeout: 120 * 1000, reuseExistingServer: true, }, + use: { + screenshot: 'only-on-failure', + trace: 'retain-on-failure', + }, })