fix: use canonical url in sitemap
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
kolaente 2024-10-24 16:34:17 +02:00
parent 5f2ea33e8e
commit 54ba152790
Signed by: konrad
GPG Key ID: F40E70337AB24C9B

View File

@ -10,7 +10,19 @@ import sitemap from '@astrojs/sitemap'
export default defineConfig({
site: 'https://vikunja.io',
output: 'hybrid',
integrations: [tailwind(), markdoc(), sitemap()],
integrations: [
tailwind(),
markdoc(),
sitemap({
serialize(item) {
if (item.url.endsWith('/')) {
item.url = item.url.slice(0, -1)
}
return item
},
}),
],
adapter: node({
mode: 'standalone',
}),