fix: adjust badge api caching strategy#1246
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
📝 WalkthroughWalkthroughThe pull request modifies nuxt.config.ts to introduce a new ISR (Incremental Static Regeneration) route rule for API badge endpoints. Under the routeRules configuration, a new entry for '/api/registry/badge/\\' is added with specific caching parameters. The rule sets an expiration time of 3600 seconds, enables query parameter pass-through, and restricts allowed query parameters to colour, labelColour, label, and name. This extends the existing ISR configuration to provide controlled caching behaviour for badge generation endpoints. 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)
No actionable comments were generated in the recent review. 🎉 Comment |
Currently, modifying the query parameters in the badge API will not update the returned content.