#How to pass collection data to sitemap config?

13 messages · Page 1 of 1 (latest)

hexed bough
#

I'm using ssr so I want to use astro:content in astro.config for adding pages in sitemap.

buoyant wolf
#

You can use the npx astro sync command to fix

hexed bough
#

no. I can't load astro:content in astro.config.mjs

buoyant wolf
hexed bough
#

It's open source:

#

cuz I'm using ssr, I have to generate sitemap by myself

buoyant wolf
#

I think using the customPages in your RSS options is redundant since it is only for urls outside of your project

#

All urls/pages inside your Astro project will be automatically added to sitemap when using @astrojs/rss so there is no need to re-add these urls using the customPages option

hexed bough
#

no. If I'm using ssr, I have to use customPages to generate RSS