Skip to content

fix(edge): serve synced marketing sitemap, list /blog/ surface - #102

Merged
sarthakagrawal927 merged 1 commit into
mainfrom
fix/sitemap-serve-marketing
Sep 20, 2026
Merged

sarthakagrawal927 merged 1 commit into
mainfrom
fix/sitemap-serve-marketing

Conversation

@sarthakagrawal927

Copy link
Copy Markdown
Member

Summary

  • /sitemap.xml was generated in agent-edge.mjs from a hardcoded six-route catalog — the synced marketing/sitemap.xml (14 URLs incl. all 7 blog articles) never reached production even though blog pages serve.
  • handleAgentEdge(request, env) now prefers env.ASSETS for /sitemap.xml → the synced file serves and stays correct on every future marketing sync. Falls back to the generated catalog when bindings are absent (tests).
  • Adds the stable /blog/ index to AGENT_SURFACE.catalog.surfaces (now 7) and the llms.txt Product list so /api/ai and discovery surfaces stay truthful.

Test plan

  • vitest src/agent-edge.test.ts src/worker.test.ts — 14/14
  • tsc --noEmit clean; biome format applied
  • Live verify /sitemap.xml lists /blog/ URLs after deploy
  • Note: pnpm check fails at pristine HEAD on a whitespace hook over tracked .fleet//.impeccable/ files — pre-existing, unrelated.

Generated with Devin

/sitemap.xml was generated from a hardcoded six-route catalog, so the
synced marketing sitemap (with all /blog/ articles) was never served.
Pass env into the agent edge and prefer ASSETS for /sitemap.xml, keeping
the generated catalog as the no-bindings fallback used by tests.

Also registers the stable /blog/ index in the agent catalog and llms.txt
so /api/ai and the discovery surfaces stay truthful.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@sarthakagrawal927
sarthakagrawal927 merged commit 751413d into main Sep 20, 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