Skip to content

fix: markdown rewrite excludes api/md paths#8379

Merged
gaearon merged 1 commit intoreactjs:mainfrom
icyJoseph:fix/markdown-request-with-dot-md-path
Mar 31, 2026
Merged

fix: markdown rewrite excludes api/md paths#8379
gaearon merged 1 commit intoreactjs:mainfrom
icyJoseph:fix/markdown-request-with-dot-md-path

Conversation

@icyJoseph
Copy link
Copy Markdown
Contributor

Fixes .md requests + content-type: text/markdown.

Testing

curl -sL -H "Accept: text/markdown" https://react-dev-plum.vercel.app/reference/react/useOptimistic.md

These should still work:

curl -sL https://react-dev-plum.vercel.app/reference/react/useOptimistic.md
curl -sL -H "Accept: text/markdown" https://react-dev-plum.vercel.app/reference/react/useOptimistic
curl -sL https://react-dev-plum.vercel.app/llms.txt
curl -sL -H "Accept: text/markdown" https://react-dev-plum.vercel.app/learn/thinking-in-react

@github-actions
Copy link
Copy Markdown

Size changes

Details

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@gaearon gaearon merged commit 1207ee3 into reactjs:main Mar 31, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants