Skip to content

Commit 1ded88f

Browse files
committed
chore(config): modify server start command in package.json and enhance Playwright config for better CI logging
1 parent 6036b96 commit 1ded88f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"dev": "next dev",
88
"build": "next build",
9-
"start": "next start",
9+
"start": "next start -H 0.0.0.0 -p 3000",
1010
"postinstall": "node scripts/copy-templates.mjs",
1111
"validate-schema:2020": "ajv validate -s",
1212
"validate-schema:2019": "ajv validate -s",

playwright.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ export default defineConfig({
1616
url: "http://localhost:3000", // URL to wait for
1717
reuseExistingServer: !process.env.CI, // Reuse server locally, start fresh in CI
1818
timeout: 240 * 1000, // Increase timeout for server start (4 minutes)
19+
stderr: 'inherit', // Show server errors in CI logs
20+
stdout: 'inherit', // Show server output in CI logs
1921
},
2022
// Optional: Configure projects for major browsers
2123
// projects: [ { name: 'chromium', use: { ...devices['Desktop Chrome'] } } ],

0 commit comments

Comments
 (0)