diff --git a/playwright.config.ts b/playwright.config.ts index 8aaf598..7f78245 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -8,7 +8,7 @@ export default defineConfig({ workers: process.env.CI ? 4 : undefined, reporter: [["list"], ["html", { outputFolder: "./playwright-reports/html" }]], use: { - baseURL: "http://localhost:3000", + baseURL: process.env.TEST_ENV === 'production' ? "https://test111.nxtgauge.com" : "http://localhost:3000", trace: "on-first-retry", screenshot: "only-on-failure", video: "retain-on-failure", @@ -23,7 +23,7 @@ export default defineConfig({ use: { ...devices["Pixel 5"] }, }, ], - webServer: { + webServer: process.env.TEST_ENV === 'production' ? undefined : { command: "npm run build && node .output/server/index.mjs", url: "http://localhost:3000", reuseExistingServer: !process.env.CI,