File tree 1 file changed +14
-0
lines changed
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -139,6 +139,20 @@ export function getDefaultIntegrations(options: RemixOptions): Integration[] {
139
139
] ;
140
140
}
141
141
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
+
142
156
/** Initializes Sentry Remix SDK on Node. */
143
157
export function init ( options : RemixOptions ) : void {
144
158
applySdkMetadata ( options , 'remix' , [ 'remix' , 'node' ] ) ;
You can’t perform that action at this time.
0 commit comments