Skip to content

Commit 0ddb8d1

Browse files
crysmagsjuan-fernandez
authored andcommitted
updating next plugin to handle version change causing failure in tests (#4337)
1 parent 37dddf8 commit 0ddb8d1

File tree

1 file changed

+1
-2
lines changed
  • packages/datadog-plugin-next/src

1 file changed

+1
-2
lines changed

packages/datadog-plugin-next/src/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const analyticsSampler = require('../../dd-trace/src/analytics_sampler')
66
const { COMPONENT } = require('../../dd-trace/src/constants')
77
const web = require('../../dd-trace/src/plugins/util/web')
88

9-
const errorPages = ['/404', '/500', '/_error', '/_not-found']
9+
const errorPages = ['/404', '/500', '/_error', '/_not-found', '/_not-found/page']
1010

1111
class NextPlugin extends ServerPlugin {
1212
static get id () {
@@ -120,7 +120,6 @@ class NextPlugin extends ServerPlugin {
120120
'resource.name': `${req.method} ${page}`.trim(),
121121
'next.page': page
122122
})
123-
124123
web.setRoute(req, page)
125124
}
126125

0 commit comments

Comments
 (0)