Nuxt/test/fixtures/full-static/nuxt.config.js
Sébastien Chopin 7c6e170a89
fix: handle router.base for crawler and serve (#7486)
Co-authored-by: pooya parsa <pyapar@gmail.com>
2020-06-10 09:51:29 +02:00

22 lines
332 B
JavaScript

export default {
target: 'static',
export: {
payload: {
config: true
}
},
router: {
// base: '/test'
},
hooks: {
export: {
before ({ setPayload }) {
setPayload({ shared: true })
},
route ({ route, setPayload }) {
setPayload({ myRoute: route })
}
}
}
}