Authored by TaoHuang

add report env by huangtao

... ... @@ -7,6 +7,10 @@ export default (context, type = 'server') => {
return (err, vm, info) => {
logger.error(err, vm, info);
if (process.env.NO_APM_REPORT) {
return;
}
if (process.env.NODE_ENV === 'production') {
setImmediate(() => {
const reportData = {
... ...