We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
_not-found
1 parent 0b651ff commit 48b3a78Copy full SHA for 48b3a78
packages/nextjs/src/server/index.ts
@@ -242,8 +242,7 @@ export function init(options: NodeOptions): NodeClient | undefined {
242
// Pages router
243
event.transaction === '/404' ||
244
// App router (could be "GET /404", "POST /404", ...)
245
- event.transaction?.match(/^(GET|HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH) \/404$/) ||
246
- event.transaction === 'GET /_not-found'
+ event.transaction?.match(/^(GET|HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH) \/(404|_not-found)$/)
247
) {
248
return null;
249
}
0 commit comments