Skip to content

🐛 BUG: Sitemap generation does not work with SSR #3682

@sebholstein

Description

@sebholstein

What version of astro are you using?

1.0.0-beta.51

Are you using an SSR adapter? If so, which one?

nodejs

What package manager are you using?

pnpm

What operating system are you using?

Mac

Describe the Bug

The generated sitemap file looks like this (no entries basically):

<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"></urlset>

In non-SSR mode, it contains all the entries that I would expect.

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-2uh2aq?file=astro.config.mjs

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

Labels

- P2: has workaroundAn edge case that only affects very specific usage, but has a trivial workaround (priority)

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions