Log Nuxt and Eleventy endpoint counts

This commit is contained in:
Sam Carlton 2021-03-15 21:08:37 -05:00
parent b03d249333
commit 3e6ce6af38
2 changed files with 5 additions and 1 deletions

View file

@ -301,6 +301,10 @@ class BuildLists {
return Array.from( endpointSet , ([route, payload]) => ({ route, payload }) ) return Array.from( endpointSet , ([route, payload]) => ({ route, payload }) )
} ).flat(1), './static/sitemap-endpoints.json') } ).flat(1), './static/sitemap-endpoints.json')
console.log('Total Nuxt Endpoints', this.endpointMaps.nuxt.size )
console.log('Total Eleventy Endpoints', this.endpointMaps.eleventy.size )
console.log('Total Endpoints', this.endpointMaps.nuxt.size + this.endpointMaps.eleventy.size )
return return
} }
} }

View file

@ -135,7 +135,7 @@ export default {
return JSON.parse(endpointsJson) return JSON.parse(endpointsJson)
}) })
console.log('Total Sitemap Endpoints', sitemapEndpoints.length) // console.log('Total Sitemap Endpoints', sitemapEndpoints.length)
return sitemapEndpoints.map( endpoint => endpoint.route ) return sitemapEndpoints.map( endpoint => endpoint.route )
} }