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

13 lines
271 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}`)
})
}
}