Fix the sitemap up a little bit.
This commit is contained in:
parent
a921fbe4ad
commit
9f0bf7c32b
2 changed files with 7 additions and 4 deletions
|
|
@ -13,6 +13,7 @@ export default defineConfig({
|
|||
integrations: [
|
||||
sitemap({
|
||||
includeByDefault: true,
|
||||
lastmod: new Date(),
|
||||
}),
|
||||
],
|
||||
output: "server",
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
},
|
||||
}),
|
||||
)
|
||||
);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue