diff --git a/README.md b/README.md index deb8fb9..35fcd23 100644 --- a/README.md +++ b/README.md @@ -171,34 +171,34 @@ To migrate a LoopBack 2.x application to use `strong-error-handler`: "errorHandler": { "disableStackTrace": false } - and replace it with: -
- "remoting": { - ..., - "rest": { - "handleErrors": false - }+ and replace it with: +
+ "remoting": { + ..., + "rest": { + "handleErrors": false + }1. In `server/middleware.json`, remove:
"final:after": { "loopback#errorHandler": {} }- and replace it with: + and replace it with:
"final:after": { "strong-error-handler": {} }1. Delete `server/middleware.production.json`. 1. Create `server/middleware.development.json` containing: -
- "final:after": { - "strong-error-handler": { - "params": { - "debug": true, - "log": true ++ "final:after": { + "strong-error-handler": { + "params": { + "debug": true, + "log": true + } } } - }For more information, see