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
this.endpointSets.nuxt.add({
route: getAppEndpoint(app),
payload: { app }
})
// console.log('Added to nuxt endpoints', getAppEndpoint(app))
// Add standard app endpoint
if ( appType === 'formula' ) {
this.endpointSets.eleventy.add({
route: getAppEndpoint(app),
payload: { 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
})