From d2f86aba5fb480c2ef43ec787b42f3ed033a25dc Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Sat, 11 Jun 2022 18:50:19 -0500 Subject: [PATCH] Fix astro template urls not added to sitemap --- build-lists.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/build-lists.js b/build-lists.js index e7433d0..cc1ea80 100644 --- a/build-lists.js +++ b/build-lists.js @@ -707,8 +707,12 @@ class BuildLists { // Add routes for Astro pages const astroPageUrls = await getUrlsForAstroDefinedPages() - - console.log( 'astroPageUrls', astroPageUrls ) + astroPageUrls.forEach( url => { + sitemapEndpoints.push({ + route: url, + payload: {} + }) + }) // Save sitemap endpoints