mirror of
https://github.com/Egonex-AI/Understand-Anything.git
synced 2026-06-22 10:58:03 +08:00
feat(dashboard): serve domain-graph.json via Vite dev server
This commit is contained in:
@@ -44,6 +44,7 @@ export default defineConfig({
|
||||
const pathname = url.pathname;
|
||||
const isProtectedEndpoint =
|
||||
pathname === "/knowledge-graph.json" ||
|
||||
pathname === "/domain-graph.json" ||
|
||||
pathname === "/diff-overlay.json" ||
|
||||
pathname === "/meta.json";
|
||||
|
||||
@@ -66,6 +67,8 @@ export default defineConfig({
|
||||
? "diff-overlay.json"
|
||||
: pathname === "/meta.json"
|
||||
? "meta.json"
|
||||
: pathname === "/domain-graph.json"
|
||||
? "domain-graph.json"
|
||||
: "knowledge-graph.json";
|
||||
|
||||
const graphDir = process.env.GRAPH_DIR;
|
||||
|
||||
Reference in New Issue
Block a user