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

Fix assets not getting optimized when outDir is outside the CWD #8670

Merged

Conversation

MichailiK
Copy link
Contributor

@MichailiK MichailiK commented Sep 26, 2023

Changes

I wrote a slightly deeper explanation in #8668 (comment).

Testing

The minimal reproducible example in the issue above (https://github.com/MichailiK/astro-images-outdir-bug) was used to test this change. I don't think this would cause regressions. I believe this change just ensures that Astro is trying to obtain the unoptimised asset from the correct folder.

Docs

Since this is a bug, caused by an inconsistency between where astro:assets is looking for the assets & where they are actually located, I don't believe this needs docs changes.

@changeset-bot
Copy link

changeset-bot bot commented Sep 26, 2023

🦋 Changeset detected

Latest commit: c4b5e71

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 Sep 26, 2023
@matthewp
Copy link
Contributor

Thanks!

@matthewp matthewp merged commit e797b68 into withastro:main Sep 27, 2023
13 checks passed
@astrobot-houston astrobot-houston mentioned this pull request Sep 28, 2023
This pull request was closed.
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.

astro:assets breaks when outDir is set to a folder that's outside the project's folder
3 participants