mirror of
https://github.com/langchain-ai/langgraphjs-api.git
synced 2026-07-19 21:33:46 -04:00
Add behind dev subcommand
This commit is contained in:
@@ -5,8 +5,10 @@ import * as path from "node:path";
|
||||
|
||||
import { z } from "zod";
|
||||
|
||||
const cwd = process.cwd();
|
||||
const cmd = process.argv.at(-1);
|
||||
if (cmd !== "dev") throw new Error(`Invalid command "${cmd}"`);
|
||||
|
||||
const cwd = process.cwd();
|
||||
const defs = z
|
||||
.record(z.string(), z.string())
|
||||
.parse(JSON.parse(process.env.LANGGRAPH_UI || "{}"));
|
||||
|
||||
Reference in New Issue
Block a user