mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 17:37:14 +00:00
f0f307553f
* Filter out non-strings * Add serverMiddleware function * Add serverMiddleware function (2) * Add serverMiddleware function (3)
13 lines
270 B
JavaScript
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}`)
|
|
})
|
|
}
|
|
}
|