diff --git a/nuxt.config.js b/nuxt.config.js index c042a3e..57f08a5 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -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 + }) } },