fix(e2e): run standalone server in Playwright CI startup
This commit is contained in:
parent
99833f5c53
commit
722c690cf4
|
|
@ -18,9 +18,18 @@ export default defineConfig({
|
||||||
{ name: 'chromium', use: { ...devices['Desktop Chrome'] } }
|
{ name: 'chromium', use: { ...devices['Desktop Chrome'] } }
|
||||||
],
|
],
|
||||||
webServer: {
|
webServer: {
|
||||||
command: 'pnpm start',
|
command: 'node .next/standalone/server.js',
|
||||||
url: 'http://127.0.0.1:3005',
|
url: 'http://127.0.0.1:3005',
|
||||||
reuseExistingServer: true,
|
reuseExistingServer: true,
|
||||||
timeout: 30_000,
|
timeout: 120_000,
|
||||||
|
env: {
|
||||||
|
...process.env,
|
||||||
|
HOSTNAME: process.env.HOSTNAME || '127.0.0.1',
|
||||||
|
PORT: process.env.PORT || '3005',
|
||||||
|
MC_DISABLE_RATE_LIMIT: process.env.MC_DISABLE_RATE_LIMIT || '1',
|
||||||
|
API_KEY: process.env.API_KEY || 'test-api-key-e2e-12345',
|
||||||
|
AUTH_USER: process.env.AUTH_USER || 'testadmin',
|
||||||
|
AUTH_PASS: process.env.AUTH_PASS || 'testpass1234!',
|
||||||
|
},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue