Skip to content

fix: Sitemap generation fails silently during build without terminating the process #478

@Nauxscript

Description

@Nauxscript

🐛 The bug

When using dynamic URLs as sitemap sources during the prerendering process, if the sitemap source URL returns an error (e.g., 404), the sitemap generation fails but the build process continues without termination. This results in a production deployment without a sitemap, which is a critical SEO issue.

🛠️ To reproduce

https://stackblitz.com/edit/nuxt-starter-epfdv8ey

🌈 Expected behavior

The build process should fail and terminate when sitemap generation encounters errors, preventing deployment of incomplete builds.

ℹ️ Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions