Skip to content

Route documented badge API URL to badge handler - #159

Merged
sajeetharan merged 2 commits into
mainfrom
copilot/fix-code-for-review-comment
Aug 15, 2026
Merged

Route documented badge API URL to badge handler#159
sajeetharan merged 2 commits into
mainfrom
copilot/fix-code-for-review-comment

Conversation

Copilot AI commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

The badge handler lives at /badge/[login], while the documented embed URL uses /api/badge/[login].svg. This adds an explicit rewrite so published badge snippets resolve to the existing route.

  • Routing
    • Added a Next.js rewrite from the documented API-style SVG path to the implemented badge route.
{
  source: '/api/badge/:login.svg',
  destination: '/badge/:login.svg',
}
  • Coverage
    • Added focused config coverage for the badge rewrite.

@vercel

vercel Bot commented Aug 15, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
dev-globe-viz Ready Ready Preview Aug 15, 2026 11:19am

Co-authored-by: sajeetharan <4833351+sajeetharan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix code based on review comment Route documented badge API URL to badge handler Aug 15, 2026
Copilot AI requested a review from sajeetharan August 15, 2026 11:19
@sajeetharan
sajeetharan marked this pull request as ready for review August 15, 2026 11:51
@sajeetharan
sajeetharan merged commit d51d57a into main Aug 15, 2026
3 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.

2 participants