fix(e2e): run standalone server in Playwright CI startup
This commit is contained in:
parent
dd759dcdb9
commit
a34caa1752
|
|
@ -18,12 +18,15 @@ 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: 120_000,
|
timeout: 120_000,
|
||||||
env: {
|
env: {
|
||||||
...process.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',
|
API_KEY: process.env.API_KEY || 'test-api-key-e2e-12345',
|
||||||
AUTH_USER: process.env.AUTH_USER || 'testadmin',
|
AUTH_USER: process.env.AUTH_USER || 'testadmin',
|
||||||
AUTH_PASS: process.env.AUTH_PASS || 'testpass1234!',
|
AUTH_PASS: process.env.AUTH_PASS || 'testpass1234!',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue