Skip to content

Commit

Permalink
fix: enable console.error for production mode (#581)
Browse files Browse the repository at this point in the history
  • Loading branch information
evenchange4 committed Mar 21, 2024
1 parent 68ec718 commit 27c6ee8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ export class ReactServerView implements IReactServerView {
SHUVI_SERVER_RENDER_TO_STRING.attrs.error.name,
true
);
if (process.env.NODE_ENV === 'development') {
logger.error(error.stack);
}

logger.error(error.stack);

setAppError(serializeServerError(error));
htmlContent = renderToString(RootApp); // Consistency on both server and client side
} finally {
Expand Down

0 comments on commit 27c6ee8

Please sign in to comment.