From b57a1fff331d5a70d385687b00573d31c0cd8bfb Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Fri, 5 Mar 2021 00:15:53 -0600 Subject: [PATCH] Load formulae into eleventy endpoints --- build-lists.js | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/build-lists.js b/build-lists.js index ed9a390..32a87a1 100644 --- a/build-lists.js +++ b/build-lists.js @@ -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 })