mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Track routes list build time
This commit is contained in:
parent
f96e155d7f
commit
13742cad14
1 changed files with 8 additions and 0 deletions
|
|
@ -120,6 +120,9 @@ export default {
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
routes() {
|
routes() {
|
||||||
|
const routesTimeName = 'Building Nuxt Routes'
|
||||||
|
console.time(routesTimeName)
|
||||||
|
|
||||||
return Promise.all([
|
return Promise.all([
|
||||||
...listsOptions,
|
...listsOptions,
|
||||||
videoListOptions
|
videoListOptions
|
||||||
|
|
@ -230,6 +233,11 @@ export default {
|
||||||
|
|
||||||
return Array.from(allEndpointsSet)
|
return Array.from(allEndpointsSet)
|
||||||
})
|
})
|
||||||
|
// Log the routes generation time
|
||||||
|
.then( result => {
|
||||||
|
console.timeEnd(routesTimeName)
|
||||||
|
return result
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue