OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.
fix: test fix broken dashboard #2
Carl-Gerhard Lindesvärd83c3647f66f0
diff --git a/apps/start/src/integrations/tanstack-query/root-provider.tsx b/apps/start/src/integrations/tanstack-query/root-provider.tsxindex 9e5740da5..a1f12858d 100644--- a/apps/start/src/integrations/tanstack-query/root-provider.tsx+++ b/apps/start/src/integrations/tanstack-query/root-provider.tsx@@ -54,26 +54,12 @@ export function createTRPCClientWithHeaders(apiUrl: string) {fetch: async (url, options) => {const isServer = typeof window === 'undefined';- // Build fetch options differently for server vs client- // Server (Node.js): Don't use browser-specific options like mode/credentials- // Also filter out signal: null which can cause issues in undiciconst fetchOptions: RequestInit = {method: options?.method,headers: options?.headers,body: options?.body,};- // Only add browser-specific options on client- if (!isServer) {- fetchOptions.mode = 'cors';- fetchOptions.credentials = 'include';- }-- // Only pass signal if it's a valid AbortSignal (not null)- if (options?.signal) {- fetchOptions.signal = options.signal;- }-try {const response = await fetch(url, fetchOptions);