mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -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() {
|
||||
const routesTimeName = 'Building Nuxt Routes'
|
||||
console.time(routesTimeName)
|
||||
|
||||
return Promise.all([
|
||||
...listsOptions,
|
||||
videoListOptions
|
||||
|
|
@ -230,6 +233,11 @@ export default {
|
|||
|
||||
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