Fix eleventy route collisions

This commit is contained in:
Sam Carlton 2021-03-13 21:40:02 -06:00
parent 01da7a3cad
commit bf0d665866
4 changed files with 18 additions and 8 deletions

View file

@ -9,7 +9,13 @@ import buildVideoList from './helpers/build-video-list.js'
import { buildVideoPayload, buildAppBenchmarkPayload } from './helpers/build-payload.js'
import { categories, getAppCategory } from './helpers/categories.js'
import { hasStory, getAppType, getAppEndpoint, getVideoEndpoint } from './helpers/app-derived.js'
import {
hasStory,
getAppType,
getAppEndpoint,
getStoryEndpoint,
getVideoEndpoint
} from './helpers/app-derived.js'
import { makeSearchableList } from './helpers/searchable-list.js'
// Setup dotenv
@ -240,7 +246,7 @@ class BuildLists {
if ( hasStory( app ) ) {
const payload = buildAppBenchmarkPayload( app, this.allVideoAppsList, this.lists.video )
this.endpointMaps.eleventy.set( `${getAppEndpoint(app)}/story/`, payload )
this.endpointMaps.eleventy.set( getStoryEndpoint(app), payload )
}