[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
This commit is contained in:
Manav Rathi 2024-05-17 14:35:10 +05:30
parent 61683713e9
commit 103d907781
No known key found for this signature in database

View file

@ -22,10 +22,10 @@
"dev": "yarn dev:photos", "dev": "yarn dev:photos",
"dev:accounts": "yarn workspace accounts next dev -p 3001", "dev:accounts": "yarn workspace accounts next dev -p 3001",
"dev:albums": "yarn workspace photos next dev -p 3002", "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:cast": "yarn workspace cast next dev -p 3001",
"dev:payments": "yarn workspace payments dev", "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", "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": "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\"", "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\"",