Files
t3code/apps/server
Theo BrowneandClaude Opus 5 0555604ded Prefer the dev server when several are live under one base dir
`findLiveServerRuntimeState` checked the configured state path first,
which without --dev-url resolves to `userdata`. With both a userdata and
a dev server running under the same base directory, `auth pairing url`
would mint against the userdata server and print its origin — not the
dev server this command exists to pair with.

Rank candidates by the `devUrl` field instead, which only a server
fronted by a web dev server records. Falls back to any live server when
no dev server is running.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
2026-07-24 17:27:13 -07:00
..