mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 06:05:11 +00:00
8870c181d7
Build and Router
29 lines
502 B
JavaScript
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']
|
|
}
|
|
}
|