🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
fix(ui): switch to trpc `networkMode: "always"` to resolve trpc connection issues (#2804)
Marc Klingend1298e68a2a0
diff --git a/web/src/utils/api.ts b/web/src/utils/api.tsindex 34057e4678..b0743acca3 100644--- a/web/src/utils/api.ts+++ b/web/src/utils/api.ts@@ -69,21 +69,13 @@ export const api = createTRPCNext<AppRouter>({defaultOptions: {queries: {onError: (error) => trpcErrorToast(error),- // react query defaults to `online`, but we want to disable it in dev and when self-hosting- networkMode:- process.env.NODE_ENV === "development" ||- process.env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION === undefined- ? "always"- : "online",+ // react query defaults to `online`, but we want to disable it as it caused issues for some users+ networkMode: "always",},mutations: {onError: (error) => trpcErrorToast(error),- // react query defaults to `online`, but we want to disable it in dev and when self-hosting- networkMode:- process.env.NODE_ENV === "development" ||- process.env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION === undefined- ? "always"- : "online",+ // react query defaults to `online`, but we want to disable it as it caused issues for some users+ networkMode: "always",},},},