#How to pass collection data to sitemap config?
13 messages · Page 1 of 1 (latest)
You can use the npx astro sync command to fix
no. I can't load astro:content in astro.config.mjs
I don't think this is possible because the config needs to load before Astro can return stuff from Content Collections. You could try using import.meta.glob or fast-glob, what does your full config look like?
It's open source:
cuz I'm using ssr, I have to generate sitemap by myself
kk. I'll try fast-glob
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