start already built

This commit is contained in:
Elio Bischof
2024-10-19 01:16:59 +02:00
parent bdfbd94661
commit 3ce1703055
4 changed files with 5 additions and 1 deletions

View File

@@ -22,7 +22,9 @@
"lint:fix": "prettier --write .", "lint:fix": "prettier --write .",
"lint-staged": "lint-staged", "lint-staged": "lint-staged",
"build": "next build", "build": "next build",
"prestart": "pnpm build",
"start": "next start", "start": "next start",
"start:built": "next start",
"clean": "pnpm mock:destroy && rm -rf .turbo && rm -rf node_modules && rm -rf .next" "clean": "pnpm mock:destroy && rm -rf .turbo && rm -rf node_modules && rm -rf .next"
}, },
"git": { "git": {

View File

@@ -7,6 +7,7 @@
"build": "turbo run build", "build": "turbo run build",
"test": "turbo run test", "test": "turbo run test",
"start": "turbo run start", "start": "turbo run start",
"start:built": "turbo run start:built",
"test:unit": "turbo run test:unit -- --passWithNoTests", "test:unit": "turbo run test:unit -- --passWithNoTests",
"test:integration": "turbo run test:integration", "test:integration": "turbo run test:integration",
"test:acceptance": "pnpm exec playwright test", "test:acceptance": "pnpm exec playwright test",

View File

@@ -73,7 +73,7 @@ export default defineConfig({
/* Run local dev server before starting the tests */ /* Run local dev server before starting the tests */
webServer: { webServer: {
command: "pnpm start", command: "pnpm start:built",
url: "http://127.0.0.1:3000", url: "http://127.0.0.1:3000",
reuseExistingServer: !process.env.CI, reuseExistingServer: !process.env.CI,
timeout: 5 * 60_000, timeout: 5 * 60_000,

View File

@@ -22,6 +22,7 @@
"build": {}, "build": {},
"test": {}, "test": {},
"start": {}, "start": {},
"start:built": {},
"test:unit": {}, "test:unit": {},
"test:integration": {}, "test:integration": {},
"test:watch": { "test:watch": {