Repository navigation
fix: report public urls for fonts in bundler-emitted css - #982
Conversation
commit: |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #982 +/- ##
==========================================
+ Coverage 71.18% 71.32% +0.13%
==========================================
Files 20 20
Lines 923 924 +1
Branches 259 259
==========================================
+ Hits 657 659 +2
Misses 220 220
+ Partials 46 45 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Looks good, this fixes it on og images side nuxt-modules/og-image#805 |
🔗 Linked issue
📚 Description
when the bundler emits a stylesheet itself,
fonts:resolvedreports font URLs relative to that stylesheet. in a production build the hook reports:which
nuxt-og-imagev7 fetches from the site root at runtime. it gets HTML back and skips the family:this PR resolves the re-emitted faces against the font asset directory as well, so the hook reports the path the font is served from.
spotted in danielroe/roe.dev#1998
@harlan-zw, do you think this is the right fix?