1. add tailscale documentation
2. beautify some comments in vite.config.js
This commit is contained in:
parent
be11c3af43
commit
ec89b62c67
2 changed files with 20 additions and 2 deletions
18
README.md
18
README.md
|
|
@ -119,6 +119,24 @@ docker compose up -d
|
|||
|
||||
Visit `http://localhost:3000`
|
||||
|
||||
### Tailscale Access
|
||||
|
||||
Visit `http://<tailscale_server_hostname_or_ip>: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: ['<your_tailscale_hostname>'], // e.g. pi5.tailf5f622.ts.net
|
||||
},
|
||||
```
|
||||
|
||||
For PocketBase, development mode, and advanced setups, see [DOCKER.md](DOCKER.md).
|
||||
|
||||
### Option 2: Manual Installation
|
||||
|
|
|
|||
|
|
@ -20,12 +20,12 @@ export default defineConfig(({ mode }) => {
|
|||
fs: {
|
||||
allow: ['.', 'node_modules'],
|
||||
// host: true,
|
||||
// allowedHosts: ['<device_specific_tailscale_magic_dns_name>'], // e.g. pi5.tailf5f622.ts.net
|
||||
// allowedHosts: ['<your_tailscale_hostname>'], // e.g. pi5.tailf5f622.ts.net
|
||||
},
|
||||
},
|
||||
// preview: {
|
||||
// host: true,
|
||||
// allowedHosts: ['<device_specific_tailscale_magic_dns_name>'], // e.g. pi5.tailf5f622.ts.net
|
||||
// allowedHosts: ['<your_tailscale_hostname>'], // e.g. pi5.tailf5f622.ts.net
|
||||
// },
|
||||
build: {
|
||||
outDir: 'dist',
|
||||
|
|
|
|||
Loading…
Reference in a new issue