diff --git a/packages/backend/src/server/api/api-handler.ts b/packages/backend/src/server/api/api-handler.ts index 99a12fd110..770d5ac6f6 100644 --- a/packages/backend/src/server/api/api-handler.ts +++ b/packages/backend/src/server/api/api-handler.ts @@ -33,7 +33,7 @@ export default (endpoint: IEndpoint, ctx: Koa.Context) => code: y!.code, id: y!.id, kind: y!.kind, - ...(y!.info ? { info: y!.info } : {}), + ...((y!.info && process.env.NODE_ENV !== "production") ? { info: y!.info } : {}), }, }; } else {