Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid removing leading slash for build.assetsPrefix #6969

Merged
merged 2 commits into from
May 2, 2023

Conversation

bluwy
Copy link
Member

@bluwy bluwy commented May 2, 2023

Changes

Fix #6844

Update joinPaths utility to not automatically strip the final path's leading and trailing slash. Surprisingly nothing breaks when I test it locally 😲

This fixes build.assetsPrefix joining paths when the value is a root path like /prefix/with/me.

Testing

Added a new test, also tested the local examples manually.

Docs

n/a. bug fix.

@changeset-bot
Copy link

changeset-bot bot commented May 2, 2023

🦋 Changeset detected

Latest commit: 35af017

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

@bluwy
Copy link
Member Author

bluwy commented May 2, 2023

Will wait for GitHub Actions to return to rerun the tests, to double-confirm that tests still pass before merging.

@github-actions github-actions bot added pkg: astro Related to the core `astro` package (scope) pkg: integration Related to any renderer integration (scope) labels May 2, 2023
@matthewp matthewp merged commit 77270cc into main May 2, 2023
@matthewp matthewp deleted the fix-assets-prefix-join branch May 2, 2023 18:13
@astrobot-houston astrobot-houston mentioned this pull request May 2, 2023
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) pkg: integration Related to any renderer integration (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

assetsPrefix behaviour with a relative path
2 participants