mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Include astro template urls in sitemap
getUrlsForAstroDefinedPages
This commit is contained in:
parent
7cc4c04347
commit
8c4700c7ea
2 changed files with 42 additions and 4 deletions
|
|
@ -13,7 +13,10 @@ import buildGamesList from '~/helpers/build-game-list.js'
|
|||
import buildHomebrewList from '~/helpers/build-homebrew-list.js'
|
||||
import buildVideoList from '~/helpers/build-video-list.js'
|
||||
import buildDeviceList from '~/helpers/build-device-list.js'
|
||||
import { saveSitemap } from '~/helpers/api/sitemap/build.js'
|
||||
import {
|
||||
saveSitemap,
|
||||
getUrlsForAstroDefinedPages
|
||||
} from '~/helpers/api/sitemap/build.js'
|
||||
import { deviceSupportsApp } from '~/helpers/devices.js'
|
||||
import getListSummaryNumbers from '~/helpers/get-list-summary-numbers.js'
|
||||
import { logArraysDifference } from '~/helpers/array.js'
|
||||
|
|
@ -702,6 +705,12 @@ class BuildLists {
|
|||
})
|
||||
} )
|
||||
|
||||
// Add routes for Astro pages
|
||||
const astroPageUrls = await getUrlsForAstroDefinedPages()
|
||||
|
||||
console.log( 'astroPageUrls', astroPageUrls )
|
||||
|
||||
|
||||
// Save sitemap endpoints
|
||||
console.log('Building Sitemap JSON')
|
||||
await this.saveToJson( sitemapEndpoints, './static/sitemap-endpoints.json')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue