Skip to content

Conversation

@marcklingen
Copy link
Member

@marcklingen marcklingen commented Sep 29, 2025

Important

Serve markdown files based on Accept header and add relevant headers and rewrites in next.config.mjs.

  • Behavior:
    • Serve markdown files when Accept header requests markdown and not HTML in next.config.mjs.
    • Add Vary: Accept header to paths that might serve different content based on Accept header, excluding /api and /_next routes.
  • Headers:
    • Add X-Robots-Tag: noindex and Content-Type: text/markdown; charset=utf-8 to /md-src/:path*.md in next.config.mjs.
  • Rewrites:
    • Add rewrite rule to serve markdown for paths without file extensions when Accept header requests markdown in next.config.mjs.

This description was created by Ellipsis for 2aad205. You can customize this summary. It will automatically update as commits are pushed.

@vercel
Copy link

vercel bot commented Sep 29, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
langfuse-docs Ready Ready Preview Sep 29, 2025 9:51pm

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. enhancement New feature or request labels Sep 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants