feat: Add going to production docs

This commit is contained in:
bracesproul
2025-04-10 12:43:14 -07:00
parent 22e82d98ae
commit 7f321cc635
7 changed files with 2097 additions and 4136 deletions

View File

@@ -0,0 +1,11 @@
import { initApiPassthrough } from "langgraph-nextjs-api-passthrough";
// This file acts as a proxy for requests to your LangGraph server.
// Read the [Going to Production](https://github.com/langchain-ai/agent-chat-ui?tab=readme-ov-file#going-to-production) section for more information.
export const { GET, POST, PUT, PATCH, DELETE, OPTIONS, runtime } =
initApiPassthrough({
apiUrl: process.env.LANGGRAPH_API_URL, // default, if not defined it will attempt to read process.env.LANGGRAPH_API_URL
apiKey: process.env.LANGSMITH_API_KEY, // default, if not defined it will attempt to read process.env.LANGSMITH_API_KEY
runtime: "edge", // default
});