Functions
createClient()
- Reads
NEXT_PUBLIC_LANGGRAPH_API_URLenv variable. - In browser context, falls back to appending
/apito the window location (proxied via Next.js passthrough). - Otherwise defaults to
/api.
Returns
Client<DefaultValues, DefaultValues, unknown>
An instance of the LangGraph SDK Client.