Locals object
To set the Express app locals object, there is a new method in the main Configurator:
server
.locals({
prop1: 'val1',
prop2: 'val2'
})
// ...
Static options
Now, it's possible to set some of the express.static
options on the add() method of the static configurator. Available options:
- dotfiles
- maxAge
- etag
See: express.static.