Skip to content

Commit a709d7f

Browse files
committed
allow withSentry to take a parameterizedRoute parameter
1 parent 2c6d952 commit a709d7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nextjs/src/utils/withSentry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export type AugmentedNextApiResponse = NextApiResponse & {
3939
};
4040

4141
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
42-
export const withSentry = (origHandler: NextApiHandler): WrappedNextApiHandler => {
42+
export const withSentry = (origHandler: NextApiHandler, parameterizedRoute?: string): WrappedNextApiHandler => {
4343
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
4444
return async (req, res) => {
4545
// first order of business: monkeypatch `res.end()` so that it will wait for us to send events to sentry before it

0 commit comments

Comments
 (0)