fix: add style to allowQuery in badge API route#1576
Conversation
Follow-up after npmx-dev#1487
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
There was a problem hiding this comment.
Pull request overview
This PR is a follow-up fix to PR #1487 that adds the style query parameter to the ISR (Incremental Static Regeneration) configuration for the badge API route. PR #1487 introduced a new optional style parameter that allows users to choose between the default badge style and a shields.io-style badge appearance, but the ISR configuration was not updated to include this parameter in the allowed query list, which would prevent proper caching behavior.
Changes:
- Added 'style' to the allowQuery array in the ISR configuration for
/api/registry/badge/**route
|
No actionable comments were generated in the recent review. 🎉 📝 WalkthroughWalkthroughThis PR expands the ISR query-allow list for the Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 1✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Follow-up after #1487