Skip to content

feat: add middleware to proxy requests to external generator#911

Merged
FajarKim merged 1 commit intomasterfrom
feat-add-middleware-to-proxy-requests-to-external-generator
Mar 23, 2026
Merged

feat: add middleware to proxy requests to external generator#911
FajarKim merged 1 commit intomasterfrom
feat-add-middleware-to-proxy-requests-to-external-generator

Conversation

@FajarKim
Copy link
Copy Markdown
Owner

Description

Add middleware that acts as a proxy to forward all requests (except those directed to /api) to gh-readme-profile-generator.vercel.app. This middleware preserves the pathname and query string, and forwards relevant headers such as User-Agent and Accept. With this middleware in place, we can use an external generator without having to modify the frontend code directly.

Type of change

  • Bug fix (added a non-breaking change which fixes an issue)
  • New feature (added a non-breaking change which adds functionality)
  • Updated documentation (updated the readme, templates, or other repo files)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Misc change (updated other files non-breaking change)

How Has This Been Tested?

  • Tested locally with a valid username
  • Tested locally with an invalid username
  • Ran tests with npm test
  • Added or updated test cases to test new features

Checklist:

  • I have checked to make sure no other pull requests are open for this issue
  • The code is properly formatted and is consistent with the existing code style
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

Screenshots

None

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 23, 2026

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

Project Deployment Actions Updated (UTC)
github-readme-profile Ready Ready Preview, Comment Mar 23, 2026 10:41am

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 63.33%. Comparing base (d229ac0) to head (3b7f33e).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #911   +/-   ##
=======================================
  Coverage   63.33%   63.33%           
=======================================
  Files          13       13           
  Lines         300      300           
  Branches       81       81           
=======================================
  Hits          190      190           
  Misses         88       88           
  Partials       22       22           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@FajarKim FajarKim merged commit 7bd6877 into master Mar 23, 2026
11 checks passed
@FajarKim FajarKim deleted the feat-add-middleware-to-proxy-requests-to-external-generator branch March 23, 2026 10:44
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.

1 participant