Skip to content

Commit

Permalink
chore: fix stack traces in dev after a recent change
Browse files Browse the repository at this point in the history
  • Loading branch information
feugy committed Jul 20, 2022
1 parent ef114de commit 1c05503
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/next/server/dev/next-dev-server.ts
Expand Up @@ -801,7 +801,9 @@ export default class DevServer extends Server {
const frames = parseStack(err.stack!)
const frame = frames.find(
({ file }) =>
!file?.startsWith('eval') && !file?.includes('web/adapter')
!file?.startsWith('eval') &&
!file?.includes('web/adapter') &&
!file?.includes('sandbox/context')
)!

if (frame.lineNumber && frame?.file) {
Expand Down

0 comments on commit 1c05503

Please sign in to comment.