We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
withSentry
parameterizedRoute
1 parent fd3d544 commit 8faeba6Copy full SHA for 8faeba6
packages/nextjs/src/utils/withSentry.ts
@@ -39,7 +39,7 @@ export type AugmentedNextApiResponse = NextApiResponse & {
39
};
40
41
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
42
-export const withSentry = (origHandler: NextApiHandler): WrappedNextApiHandler => {
+export const withSentry = (origHandler: NextApiHandler, parameterizedRoute?: string): WrappedNextApiHandler => {
43
44
return async (req, res) => {
45
// first order of business: monkeypatch `res.end()` so that it will wait for us to send events to sentry before it
0 commit comments