diff --git a/understand-anything-plugin/packages/dashboard/vite.config.ts b/understand-anything-plugin/packages/dashboard/vite.config.ts index c28056b..46b8668 100644 --- a/understand-anything-plugin/packages/dashboard/vite.config.ts +++ b/understand-anything-plugin/packages/dashboard/vite.config.ts @@ -9,7 +9,7 @@ import crypto from "crypto"; // Generate a one-time token when the server process starts. // This token is printed to the terminal and must be in the URL // to fetch knowledge-graph.json or diff-overlay.json. -const ACCESS_TOKEN = crypto.randomBytes(16).toString("hex"); +const ACCESS_TOKEN = process.env.UNDERSTAND_ACCESS_TOKEN || crypto.randomBytes(16).toString("hex"); const MAX_SOURCE_FILE_BYTES = 1024 * 1024; function graphFileCandidates(fileName: string): string[] {