diff --git a/README.md b/README.md index a62da11..9ffd201 100644 --- a/README.md +++ b/README.md @@ -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.