Nuxt/examples/custom-routes/nuxt.config.js
Alexandre Chopin 8870c181d7 Update custom route example
Build and Router
2016-12-11 02:44:40 +01:00

29 lines
502 B
JavaScript

module.exports = {
router: {
// routes: [
// { name: 'post-slug', path: ':slug(\\d+)' }
// ],
routes: {
comments: {
_id: {
regexp: ':id(\\d+)',
generate: [1, 2, 3, 4] // Need to be finished on generate
}
},
three: {
_two: {
regexp: ':two(\\d+)',
one: {
_id: {
regexp: ':id(\\d+)'
}
}
}
}
}
},
build: {
vendor: ['axios']
}
}