mirror of
https://github.com/Egonex-AI/Understand-Anything.git
synced 2026-06-22 10:58:03 +08:00
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:
co-authored by
Claude Opus 4.6
parent
16868f200d
commit
61a28c7d6c
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user