Skip to content

Commit

Permalink
fix(prerender): log error stack traces (#2720)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Sep 12, 2024
1 parent 71cf901 commit e28a02f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/internal/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export function normalizeError(error: any, isDev?: boolean) {
const cwd = typeof process.cwd === "function" ? process.cwd() : "/";

const stack =
!isDev && (error.unhandled || error.fatal)
!isDev && !import.meta.prerender && (error.unhandled || error.fatal)
? []
: ((error.stack as string) || "")
.split("\n")
Expand Down

0 comments on commit e28a02f

Please sign in to comment.