fix: include access token in auto-opened dashboard URL

CLI --open overrides server.open config, stripping the token. Remove
--open from CLI and set server.open to /?token= so the browser opens
with the access token already included.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
JohnWong
2026-04-13 23:22:05 +08:00
co-authored by Claude Opus 4.6
parent 16868f200d
commit 61a28c7d6c
2 changed files with 2 additions and 1 deletions
@@ -16,6 +16,7 @@ export default defineConfig({
server: {
host: "127.0.0.1",
port: 5173,
open: `/?token=${ACCESS_TOKEN}`,
},
resolve: {
@@ -56,7 +56,7 @@ Start the Understand Anything dashboard to visualize the knowledge graph for the
5. Start the Vite dev server pointing at the project's knowledge graph:
```bash
cd <dashboard-dir> && GRAPH_DIR=<project-dir> npx vite --host 127.0.0.1 --open
cd <dashboard-dir> && GRAPH_DIR=<project-dir> npx vite --host 127.0.0.1
```
Run this in the background so the user can continue working.