Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/tanstackstart-react/src/index.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export declare const unleashIntegration: typeof clientSdk.unleashIntegration;

export declare const wrapMiddlewaresWithSentry: typeof serverSdk.wrapMiddlewaresWithSentry;

export declare const replayIntegration: typeof clientSdk.replayIntegration;
export declare const tanstackRouterBrowserTracingIntegration: typeof clientSdk.tanstackRouterBrowserTracingIntegration;
export declare const sentryGlobalRequestMiddleware: typeof serverSdk.sentryGlobalRequestMiddleware;
export declare const sentryGlobalFunctionMiddleware: typeof serverSdk.sentryGlobalFunctionMiddleware;
Expand Down
11 changes: 11 additions & 0 deletions packages/tanstackstart-react/src/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@ export { wrapMiddlewaresWithSentry } from './middleware';
export { sentryGlobalRequestMiddleware, sentryGlobalFunctionMiddleware } from './globalMiddleware';
export { createSentryTunnelRoute } from './tunnelRoute';

/**
* A no-op stub of the replay integration for the server. Router setup code is shared between client and server,
* so this stub is needed to prevent build errors during SSR bundling.
*/
export function replayIntegration(_options?: Record<string, unknown>): Integration {
return {
name: 'Replay',
setup() {},
};
}

/**
* A no-op stub of the browser tracing integration for the server. Router setup code is shared between client and server,
* so this stub is needed to prevent build errors during SSR bundling.
Expand Down
Loading