Nuxt/test/fixtures/cli/nuxt.config.js

13 lines
300 B
JavaScript
Raw Normal View History

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