Skip to content

fix: put posts and guides back in the sitemap - #102

Merged
ZeeshanAdilButt merged 1 commit into
mainfrom
fix/sitemap-content
Nov 13, 2026
Merged

ZeeshanAdilButt merged 1 commit into
mainfrom
fix/sitemap-content

Conversation

@ZeeshanAdilButt

Copy link
Copy Markdown
Member

Why

#101 made the sitemap refresh hourly so new DSOC projects would appear without a deploy. That moved it from build time to request time, where the content folder is not available. The live sitemap went from 35 addresses to 26: the 13 posts and guides were gone. Found by the re-check after deploy.

What changes

  • The sitemap is built once per deploy again, where the content folder exists.
  • The content files are also listed for the sitemap route in outputFileTracingIncludes, so it cannot lose them if it is ever rendered later.
  • DSOC project pages stay in the sitemap; the database is read at build time. A new project appears with the next deploy.

Checked

The live sitemap is counted again after deploy: 22 pages, 4 project pages, 13 posts and guides.

The previous change made the sitemap refresh hourly. That moved it from build
time to request time, where the content folder is not available, so the 13
posts and guides dropped out and the live sitemap went from 35 addresses to 26.

The sitemap is built once per deploy again. The DSOC project pages stay in it:
the database is read at build time.
@ZeeshanAdilButt
ZeeshanAdilButt merged commit 2fc2b59 into main Nov 13, 2026
2 checks passed
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