diff --git a/build-lists.js b/build-lists.js index 160c3ef..ed9a390 100644 --- a/build-lists.js +++ b/build-lists.js @@ -241,10 +241,15 @@ class BuildLists { // Add benchmark endpoints for apps and games if ( appType === 'app' || appType === 'game' ) { - this.endpointSets.nuxt.add({ - route: `${getAppEndpoint(app)}/benchmarks`, - payload: buildAppBenchmarkPayload( app, this.allVideoAppsList, this.lists.video ) - }) + const payload = buildAppBenchmarkPayload( app, this.allVideoAppsList, this.lists.video ) + + // Only add a benchmarks endpoint if it has any videos + if ( payload.allVideos.length > 0 ) { + this.endpointSets.nuxt.add({ + route: `${getAppEndpoint(app)}/benchmarks`, + payload: buildAppBenchmarkPayload( app, this.allVideoAppsList, this.lists.video ) + }) + } } // Add app or game endpoint diff --git a/components/relative-time.vue b/components/relative-time.vue index ce0e07c..204c389 100644 --- a/components/relative-time.vue +++ b/components/relative-time.vue @@ -5,7 +5,7 @@