docs: describe a local-network run

This commit is contained in:
vhaudiquet committed 2026-11-28 01:17:12 +01:00
1 parent 0035f4e031
commit bd3aed67b4
1 file changed
+7
+7
View File
@@ -59,6 +59,13 @@ create the first account. The server log also prints a one-time setup
link, in case someone already opened the app before the database
existed.
For a local-network test, bind `0.0.0.0:7800` and set
`TOGETHER_PUBLIC_URL` to the machine's LAN address, for example
`http://10.4.1.222:7800`. Invite links and cookies then use that
address. Preview hosts need a name that resolves from the other device;
`TOGETHER_PREVIEW_ORIGIN=http://preview.10.4.1.222.nip.io:7800` works
when the network can reach a public DNS resolver.
During client development, run `pnpm dev` in `web/` (port 3000) and
keep the server on port 7800; the Nuxt dev proxy forwards `/api`,
including the terminal WebSocket.