diff --git a/apps/login/package.json b/apps/login/package.json index 8863d361e71..541766325fe 100644 --- a/apps/login/package.json +++ b/apps/login/package.json @@ -22,7 +22,9 @@ "lint:fix": "prettier --write .", "lint-staged": "lint-staged", "build": "next build", + "prestart": "pnpm build", "start": "next start", + "start:built": "next start", "clean": "pnpm mock:destroy && rm -rf .turbo && rm -rf node_modules && rm -rf .next" }, "git": { diff --git a/package.json b/package.json index 774a7612fdb..6b5e27cc7d2 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "build": "turbo run build", "test": "turbo run test", "start": "turbo run start", + "start:built": "turbo run start:built", "test:unit": "turbo run test:unit -- --passWithNoTests", "test:integration": "turbo run test:integration", "test:acceptance": "pnpm exec playwright test", diff --git a/playwright.config.ts b/playwright.config.ts index 8bddf819337..bf73cb21d13 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -73,7 +73,7 @@ export default defineConfig({ /* Run local dev server before starting the tests */ webServer: { - command: "pnpm start", + command: "pnpm start:built", url: "http://127.0.0.1:3000", reuseExistingServer: !process.env.CI, timeout: 5 * 60_000, diff --git a/turbo.json b/turbo.json index e2412dfe97a..a98ff8726dc 100644 --- a/turbo.json +++ b/turbo.json @@ -22,6 +22,7 @@ "build": {}, "test": {}, "start": {}, + "start:built": {}, "test:unit": {}, "test:integration": {}, "test:watch": {