Fix the sitemap up a little bit.

This commit is contained in:
wearrrrr 2024-09-20 11:44:54 -05:00
parent a921fbe4ad
commit 9f0bf7c32b
2 changed files with 7 additions and 4 deletions

View file

@ -13,6 +13,7 @@ export default defineConfig({
integrations: [
sitemap({
includeByDefault: true,
lastmod: new Date(),
}),
],
output: "server",

View file

@ -7,6 +7,7 @@ import sitemap from 'sitemap-ext:config';
const gamesList = games as GameList;
sitemap(async ({ setSitemap}) => {
const gamesList = games as GameList;
const urls = Object.keys(gamesList);
@ -14,9 +15,10 @@ sitemap(async ({ setSitemap }) => {
urls.map((game) => ({
sitemap: true,
params: {
game,
}
}))
game: game,
},
}),
)
);
});