TASK22102: slice4 larger file set + production detail suppression

This commit is contained in:
2026-03-17 13:06:28 +00:00
parent 3cbd876b77
commit e68319f16c
8 changed files with 122 additions and 23 deletions
+2 -1
View File
@@ -11,6 +11,7 @@ export const respondError = (
details
} = {}
) => {
const isProduction = process.env.NODE_ENV === "production";
const payload = {
success: false,
error: {
@@ -19,7 +20,7 @@ export const respondError = (
}
};
if (typeof details !== "undefined") {
if (!isProduction && typeof details !== "undefined") {
payload.error.details = details;
}