You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have extended the backend to apply specific business rules on checkout. We return these errors as instances of MedusaError. This works great in Dev but the Production build sanitises the errors to prevent leaking detail. Here is the message:
Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.
I understand this is part of React but wondering if anyone had an example of how this scenario should be implemented?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
We have extended the backend to apply specific business rules on checkout. We return these errors as instances of MedusaError. This works great in Dev but the Production build sanitises the errors to prevent leaking detail. Here is the message:
Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.
I understand this is part of React but wondering if anyone had an example of how this scenario should be implemented?
Regards
Nick
Beta Was this translation helpful? Give feedback.
All reactions