Skip to content

Commit 1b33120

Browse files
authored
chore: fix 500 path (#2608)
1 parent 6230732 commit 1b33120

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

apps/web/next.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,11 @@ module.exports = MillionLint.next({
378378
destination: '/build/:path',
379379
permanent: true,
380380
},
381+
{
382+
source: '/500',
383+
destination: '/',
384+
permanent: false,
385+
},
381386
];
382387
},
383388
},

apps/web/tracer/initialize.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const initTracer = () => {
2727
tracer.use('http', {
2828
enabled: true,
2929
service: process.env.CODEFLOW_PROJECT_NAME,
30-
blocklist: /_health/,
30+
blocklist: [/_health/, /500/],
3131
});
3232

3333
return tracer;

0 commit comments

Comments
 (0)