[web] Fail to start if the port is taken (#1755)

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:44:15 +05:30 committed by GitHub
commit 32b12dbc09
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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\"",