Load formulae into eleventy endpoints

This commit is contained in:
Sam Carlton 2021-03-05 00:15:53 -06:00
parent 5b1fc8c9cf
commit b57a1fff33

View file

@ -252,12 +252,20 @@ class BuildLists {
} }
} }
// Add app or game endpoint // Add standard app endpoint
this.endpointSets.nuxt.add({ if ( appType === 'formula' ) {
route: getAppEndpoint(app), this.endpointSets.eleventy.add({
payload: { app } route: getAppEndpoint(app),
}) payload: { app }
// console.log('Added to nuxt endpoints', getAppEndpoint(app)) })
} else {
// Add app or game endpoint
this.endpointSets.nuxt.add({
route: getAppEndpoint(app),
payload: { app }
})
// console.log('Added to nuxt endpoints', getAppEndpoint(app))
}
return return
}) })