mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
chore(portless): upgrade local dev URLs
This commit is contained in:
@@ -92,10 +92,10 @@ If uncertain, ask the developer before adding an entry.
|
||||
|
||||
- **Date:** 2026-03-30
|
||||
- **Observed by:** Codex
|
||||
- **Context:** Running `PORTLESS=0 yarn start` while another local service already owned port `1355`
|
||||
- **What was surprising:** The non-Portless dev fallback forced Vite onto `5chan.localhost:1355` with `--strictPort`, so the fallback path could fail immediately even though the main Portless flow is collision-safe.
|
||||
- **Impact:** Contributors could lose the fallback dev path or interrupt their startup flow when `1355` was already busy.
|
||||
- **Mitigation:** Keep the fallback behind `scripts/start-dev.js`, which now probes from `1355` upward and starts Vite on the next free port instead of exiting.
|
||||
- **Context:** Running `PORTLESS=0 yarn start` while another local service already owned port `3000`
|
||||
- **What was surprising:** The non-Portless dev fallback forced Vite onto `5chan.localhost` with `--strictPort`, so the fallback path could fail immediately even though the main Portless flow is collision-safe.
|
||||
- **Impact:** Contributors could lose the fallback dev path or interrupt their startup flow when `3000` was already busy.
|
||||
- **Mitigation:** Keep the fallback behind `scripts/start-dev.js`, which now probes from `3000` upward and starts Vite on the next free port instead of exiting.
|
||||
- **Status:** confirmed
|
||||
|
||||
### Fixed Portless app names collide across 5chan worktrees
|
||||
@@ -105,7 +105,7 @@ If uncertain, ask the developer before adding an entry.
|
||||
- **Context:** Starting `yarn start` in one 5chan worktree while another 5chan worktree was already serving through Portless
|
||||
- **What was surprising:** Using the literal Portless app name `5chan` in every worktree makes the route itself collide, even when the backing ports are different, so the second process fails with `"5chan.localhost" is already registered`.
|
||||
- **Impact:** Parallel 5chan branches can block each other even though Portless is meant to let them coexist safely.
|
||||
- **Mitigation:** Keep Portless startup behind `scripts/start-dev.js`, which now uses a branch-scoped `*.5chan.localhost:1355` route outside the canonical case and automatically increments a `-2`, `-3`, ... suffix when that branch-scoped route is already occupied.
|
||||
- **Mitigation:** Keep Portless startup behind `scripts/start-dev.js`, which now uses a branch-scoped `*.5chan.localhost` route outside the canonical case and automatically increments a `-2`, `-3`, ... suffix when that branch-scoped route is already occupied.
|
||||
- **Status:** confirmed
|
||||
|
||||
### Toolchain model names are not interchangeable
|
||||
|
||||
Reference in New Issue
Block a user