mirror of
https://github.com/docker/docs.git
synced 2026-06-19 07:35:16 +00:00
c0bb56e6af
The CloudFront Lambda rewrote `/` with `Accept: text/markdown` to an invalid `.md` URI, causing a 502 LambdaValidationError. Homepage has no flattened markdown equivalent, so route to `/llms.txt` — the agent-oriented markdown index of the site. Same handling for `/index.html`. Also set `Content-Type: text/markdown` on `llms.txt` at upload time, so content negotiation responses and direct requests both advertise the correct media type. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>