Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate Sitemap beyond static for dynamic routes #789

Open
Tracked by #197
AlbertSabate opened this issue Mar 8, 2025 · 1 comment
Open
Tracked by #197

Generate Sitemap beyond static for dynamic routes #789

AlbertSabate opened this issue Mar 8, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@AlbertSabate
Copy link
Collaborator

AlbertSabate commented Mar 8, 2025

Is your feature request related to a problem? Please describe.
Currently the sitemap.xml is generated on build time. This is cool for an static website where you have to prebuild all website. However, sometimes our sites are dynamic. For example a blog where you are using a CMS. It would be lovely that the sitemap.xml is dynamic and can fetch data from the outside to align dynamic pages created on the fly. Currently you will have to rebuild the project.

Describe the solution you'd like
I would love the sitemap to be static if we output brisa with as an static site. Or dynamic in the scenario where brisa has available a server.
sitemap builds in 0.02s at most in most case scenario. Let's say you have an API fetch to do and take 1s. The impact on performance is irrelevant as robots will wait for it and impatient humans won't be affected. Also, the user will be able to add a cache if consider it necessary.

Describe alternatives you've considered
Just rebuilding the site with every backend change, but is a waste of time and resources.

@AlbertSabate AlbertSabate added enhancement New feature or request improve DX and removed improve DX labels Mar 8, 2025
@aralroca
Copy link
Collaborator

aralroca commented Mar 8, 2025

I'm going to add it to 1.0 routemap

@aralroca aralroca changed the title Proposal: Sitemap should be flagged as dynamic or static, depending on brisa output. Generate Sitemap beyond static for dynamic routes Mar 8, 2025
@aralroca aralroca mentioned this issue Mar 8, 2025
29 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants