Skip to content

Conversation

@nader-eloshaiker
Copy link

@nader-eloshaiker nader-eloshaiker commented Oct 20, 2025

The Vite Plugin generates the sitemap.xml after vite copies the contents of the public folder into the dist and so not part of the deployment.

The plugin should generate the sitemap.xml first before the bundle is generated so that it can be included in the dist folder.

To achieve this, the plugin has to change the Vite build hook from closeBundle to buildStart.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant