diff --git a/README.md b/README.md index c82b6e4..d60df18 100644 --- a/README.md +++ b/README.md @@ -119,6 +119,24 @@ docker compose up -d Visit `http://localhost:3000` +### Tailscale Access + +Visit `http://:3000` + +By default, the app uses Vite preview, which restricts access to localhost. +To allow access over Tailscale: + +1. Open `vite.config.js` + +2. Uncomment and configure the `preview` section: + +```js +preview: { + host: true, + allowedHosts: [''], // e.g. pi5.tailf5f622.ts.net +}, +``` + For PocketBase, development mode, and advanced setups, see [DOCKER.md](DOCKER.md). ### Option 2: Manual Installation diff --git a/vite.config.js b/vite.config.js index 13d00e0..5d5b68f 100644 --- a/vite.config.js +++ b/vite.config.js @@ -20,12 +20,12 @@ export default defineConfig(({ mode }) => { fs: { allow: ['.', 'node_modules'], // host: true, - // allowedHosts: [''], // e.g. pi5.tailf5f622.ts.net + // allowedHosts: [''], // e.g. pi5.tailf5f622.ts.net }, }, // preview: { // host: true, - // allowedHosts: [''], // e.g. pi5.tailf5f622.ts.net + // allowedHosts: [''], // e.g. pi5.tailf5f622.ts.net // }, build: { outDir: 'dist',