Nuxt/test/fixtures/cli/nuxt.config.js
Jonas Galvez f0f307553f Filter out non-strings (serverMiddleware watch fix) (#3771)
* Filter out non-strings

* Add serverMiddleware function

* Add serverMiddleware function (2)

* Add serverMiddleware function (3)
2018-08-20 16:43:23 +02:00

13 lines
270 B
JavaScript

export default {
serverMiddleware: [
'~/middleware.js',
(req, res, next) => next()
],
watch: ['~/custom.file'],
hooks(hook) {
hook('listen', (server, { port, host }) => {
process.stdout.write(`Listening on http://${host}:${port}`)
})
}
}