Repository navigation
perf: serve changelogs from a static client-only shell - #3480
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
|
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
Lunaria Status Overview🌕 This pull request will trigger status changes. Learn moreBy default, every PR changing files present in the Lunaria configuration's You can change this by adding one of the keywords present in the Tracked Files
Warnings reference
|
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
50afc3c to
9aba79d
Compare
On a warm docs cache the HTML typically arrives before the versionless URL redirect occurs, resulting in a race.
🧭 Context
changelog pages are disallowed in robots.txt, yet crawlers that ignore it still hit them and trigger full SSR responses. rendering /package-changelog/nuxt produces over 2 MB of HTML (with more than half of that duplicated inside the Nuxt payload) and takes over 2s cold.
📚 Description
this PR serves
/package-changelog/**and/changelog/:name/**from the prerendered static/_spa.htmlshell, matching what the code and docs pages do. link preview bots still get a lightweight server-rendered response with title, description and a plainPackage.takumiOG card, with no upstream fetches.Note
#3476 adds
s-maxageCDN header rules for/package-changelog/**and/changelog/**. I probably rework it to stack it on this PR instead as this static shell supersedes them.