feat(dev): Make t3 code dev instances shareable over Tailscale #4556
Merged
t3dotgg(GitHub profile, opens in a new tab)merged 24 commits into
main fromrefs/pull/4556/head·merged by t3dotgg(GitHub profile, opens in a new tab) View on GitHubShowing 29 changed files with 25 additions and 2 deletions (loading 25).
x
@@ -13,13 +13,17 @@
-3. Start the full web stack with `vp run dev`. In a linked worktree it defaults to that worktree's gitignored `.t3`; pass `--home-dir <base-dir>` only when the test needs a different isolated directory.
+3. Start the full web stack with `vp run dev`. Add `--share` when the user needs to open it from another tailnet device. In a linked worktree it defaults to that worktree's gitignored `.t3`; pass `--home-dir <base-dir>` only when the test needs a different isolated directory.
+Ports are derived from the worktree path but can shift when occupied. Always read the actual values from the `[dev-runner]` line.
+
+Shared browser dev is single-origin: Vite proxies the backend paths, so never set `VITE_HTTP_URL` or `VITE_WS_URL` for `dev`/`dev:web`.
+
@@ -8,9 +8,13 @@
+import { resolveSessionCookieName } from "./utils.ts";