feat: force port 3000 to make Next.js abort startup on multiple instances clashing on same port

This commit is contained in:
Christel Westerberg
2024-04-16 11:37:26 +02:00
committed by Michael Zetterberg
parent 7dc07c256c
commit b738023a43
4 changed files with 10 additions and 3 deletions

View File

@@ -7,7 +7,7 @@
"prebuild": "npm run lint",
"build": "next build",
"predev": "rm -rf .next",
"dev": "next dev",
"dev": "PORT=3000 NEXT_PUBLIC_PORT=3000 next dev",
"prelint": "rm -rf .next",
"lint": "next lint --max-warnings 0 && tsc",
"prelint:fix": "rm -rf .next",