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

13 lines
270 B
JavaScript
Raw Normal View History

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}`)
})
}
}