diff --git a/src/utils/trpc.ts b/src/utils/trpc.ts index dd1cd8e9..ec42dd73 100644 --- a/src/utils/trpc.ts +++ b/src/utils/trpc.ts @@ -110,6 +110,14 @@ export const trpc = createTRPCNext< }), httpBatchLink({ url: `${getBaseUrl()}/api/trpc`, + /** + * Provide a function that will invoke the current global + * window.fetch. We do this to pick up any changes to fetch + * at runtime, eg, by Datadog RUM + */ + fetch(url, options) { + return fetch(url, options) + }, /** * Set custom request headers on every request from tRPC * @link https://trpc.io/docs/ssr