From 103d907781a7ab09041500797f0ba8b81f1c25db Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Fri, 17 May 2024 14:35:10 +0530 Subject: [PATCH] [web] Fail to start if the port is taken This prevents cases say where the web app is running in a terminal, but when we try to run the desktop app it silently switches to a different and then failing to load in a manner that is harder to debug compared to if it'd failed outright. Ref: - https://github.com/vercel/next.js/discussions/23932#discussioncomment-599284 --- web/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/package.json b/web/package.json index 25fea2176..ec096189a 100644 --- a/web/package.json +++ b/web/package.json @@ -22,10 +22,10 @@ "dev": "yarn dev:photos", "dev:accounts": "yarn workspace accounts next dev -p 3001", "dev:albums": "yarn workspace photos next dev -p 3002", - "dev:auth": "yarn workspace auth next dev", + "dev:auth": "yarn workspace auth next dev -p 3000", "dev:cast": "yarn workspace cast next dev -p 3001", "dev:payments": "yarn workspace payments dev", - "dev:photos": "yarn workspace photos next dev", + "dev:photos": "yarn workspace photos next dev -p 3000", "dev:staff": "yarn workspace staff dev", "lint": "concurrently --names 'prettier,eslint,tsc' \"yarn prettier --check --log-level warn .\" \"yarn workspaces run eslint --report-unused-disable-directives .\" \"yarn workspaces run tsc\"", "lint-fix": "concurrently --names 'prettier,eslint,tsc' \"yarn prettier --write --log-level warn .\" \"yarn workspaces run eslint --report-unused-disable-directives --fix .\" \"yarn workspaces run tsc\"",