config.default.js 522 B

1234567891011121314
  1. 'use strict';
  2. const path = require('path');
  3. exports.onerror = {
  4. // 5xx error will redirect to ${errorPageUrl}
  5. // won't redirect in local env
  6. errorPageUrl: '',
  7. // will excute `appErrorFilter` when emit an error in `app`
  8. // If `appErrorFilter` return false, egg-onerror won't log this error.
  9. // You can logging in `appErrorFilter` and return false to override the default error logging.
  10. appErrorFilter: null,
  11. // default template path
  12. templatePath: path.join(__dirname, '../lib/onerror_page.mustache'),
  13. };