Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bengl committed Dec 13, 2024
1 parent ebcf4ef commit 2fcd426
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/datadog-instrumentations/src/next.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,14 @@ addHook({ name: 'next', versions: ['>=13.2'], file: 'dist/server/next-server.js'
return nextServer
})

addHook({ name: 'next', versions: ['>=11.1 <12.0.0', '>=12.2.0 <13.2'], file: 'dist/server/next-server.js' }, nextServer => {
addHook({
name: 'next',
versions: [
'>=11.1 <12.0.0',
'>=12.2.0 <13.2'
],
file: 'dist/server/next-server.js'
}, nextServer => {
const Server = nextServer.default
shimmer.wrap(Server.prototype, 'handleApiRequest', wrapHandleApiRequest)
return nextServer
Expand Down

0 comments on commit 2fcd426

Please sign in to comment.