Skip to content

Commit e5d54a3

Browse files
committed
Export a no-op function in place of wrapExpressCreateRequestHandler.
1 parent 8941895 commit e5d54a3

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

packages/remix/src/index.server.ts

+14
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,20 @@ export function getDefaultIntegrations(options: RemixOptions): Integration[] {
139139
];
140140
}
141141

142+
/**
143+
* Returns the given Express createRequestHandler function.
144+
* This function is no-op and only returns the given function.
145+
*
146+
* @deprecated No need to wrap the Express request handler.
147+
* @param createRequestHandlerFn The Remix Express `createRequestHandler`.
148+
* @returns `createRequestHandler` function.
149+
*/
150+
export function wrapExpressCreateRequestHandler(createRequestHandlerFn: unknown): unknown {
151+
DEBUG_BUILD && logger.warn('wrapExpressCreateRequestHandler is deprecated and no longer needed.');
152+
153+
return createRequestHandlerFn;
154+
}
155+
142156
/** Initializes Sentry Remix SDK on Node. */
143157
export function init(options: RemixOptions): void {
144158
applySdkMetadata(options, 'remix', ['remix', 'node']);

0 commit comments

Comments
 (0)