Skip to content

Conversation

@florian-lefebvre
Copy link
Member

@florian-lefebvre florian-lefebvre commented May 12, 2025

Changes

Testing

  • Updates existing unit tests
  • Adds unit tests
  • Refactors the fixture tests
  • Adds fixture tests
  • Manually tested

Docs

Changeset

@florian-lefebvre florian-lefebvre self-assigned this May 12, 2025
@changeset-bot
Copy link

changeset-bot bot commented May 12, 2025

🦋 Changeset detected

Latest commit: aa4db65

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label May 12, 2025
@codspeed-hq
Copy link

codspeed-hq bot commented May 12, 2025

CodSpeed Performance Report

Merging #13784 will not alter performance

Comparing fix/fonts-assets-prefix (aa4db65) with main (d7a1889)

Summary

✅ 6 untouched benchmarks

@florian-lefebvre florian-lefebvre marked this pull request as ready for review May 12, 2025 10:06
Comment on lines +83 to +86
const assetsDir = prependForwardSlash(
appendForwardSlash(joinPaths(settings.config.build.assets, ASSETS_DIR)),
);
const baseUrl = joinPaths(settings.config.base, assetsDir);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't we remove the trailing slash anymore? Also, the comment must be updated. Line 82 still talks about trailing slash

Copy link
Member Author

@florian-lefebvre florian-lefebvre May 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've updated the comment thanks! We don't need to care about the trailing slash here anymore because this is handled by each UrlResolver (which use joinPaths() under the hood)

@florian-lefebvre florian-lefebvre merged commit d7a1889 into main May 12, 2025
5 checks passed
@florian-lefebvre florian-lefebvre deleted the fix/fonts-assets-prefix branch May 12, 2025 11:36
@astrobot-houston astrobot-houston mentioned this pull request May 12, 2025
openscript pushed a commit to openscript/astro that referenced this pull request Sep 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg: astro Related to the core `astro` package (scope)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Experimental fonts API does not respect build.assetsPrefix

2 participants