Skip to content

Fix dynamic lastmod in sitemap.xml.ts - #5

Closed
toprakdevx wants to merge 1 commit into
GaleMC:mainfrom
toprakdevx:fix/sitemap-lastmod-clean
Closed

Fix dynamic lastmod in sitemap.xml.ts#5
toprakdevx wants to merge 1 commit into
GaleMC:mainfrom
toprakdevx:fix/sitemap-lastmod-clean

Conversation

@toprakdevx

Copy link
Copy Markdown

sitemap.xml.ts was generating a new timestamp on every request. This caused search engines to re-crawl unnecessarily.

Added getLastmod() helper that returns a stable date. Supports SITEMAP_LASTMOD env var override. Also added Cache-Control header to the response.

@vercel

vercel Bot commented Aug 1, 2026

Copy link
Copy Markdown

@toprakdevx is attempting to deploy a commit to the Gale Team on Vercel.

A member of the Team first needs to authorize it.

@Nrleryxx Nrleryxx closed this Aug 10, 2026
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.

2 participants