Skip to content

fix: markdown rewrite excludes api/md paths#8379

Open
icyJoseph wants to merge 1 commit intoreactjs:mainfrom
icyJoseph:fix/markdown-request-with-dot-md-path
Open

fix: markdown rewrite excludes api/md paths#8379
icyJoseph wants to merge 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! 🙌

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.

1 participant