diff --git a/build-lists.js b/build-lists.js index d4f1394..aa34765 100644 --- a/build-lists.js +++ b/build-lists.js @@ -9,7 +9,7 @@ import buildVideoList from './helpers/build-video-list.js' import { buildVideoPayload, buildAppBenchmarkPayload } from './helpers/build-payload.js' import { categories, getAppCategory } from './helpers/categories.js' -import { getAppType, getAppEndpoint, getVideoEndpoint } from './helpers/app-derived.js' +import { hasStory, getAppType, getAppEndpoint, getVideoEndpoint } from './helpers/app-derived.js' import { makeSearchableList } from './helpers/searchable-list.js' // Setup dotenv @@ -236,6 +236,14 @@ class BuildLists { // if ( isGame ) { console.log() } + // Add story endpoints for native apps + if ( hasStory( app ) ) { + const payload = buildAppBenchmarkPayload( app, this.allVideoAppsList, this.lists.video ) + + this.endpointMaps.nuxt.set( `${getAppEndpoint(app)}/story/`, payload ) + } + + // Add benchmark endpoints for apps and games if ( appType === 'app' || appType === 'game' ) { const payload = buildAppBenchmarkPayload( app, this.allVideoAppsList, this.lists.video )