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

Add caching for optimized images #6990

Merged
merged 5 commits into from
May 4, 2023
Merged

Add caching for optimized images #6990

merged 5 commits into from
May 4, 2023

Conversation

Princesseuh
Copy link
Member

Changes

This PR adds a new setting cacheDir (default is ./node_modules/.astro (same as @astrojs/image)) that is then used to cache optimized images in order to be able to reuse the build artifacts in subsequent builds.

This should unblock larger website from using astro:assets, as the previous implementation wasn't performant enough

Testing

Added tests

Docs

N/A

@Princesseuh Princesseuh requested a review from a team as a code owner May 4, 2023 12:03
@changeset-bot
Copy link

changeset-bot bot commented May 4, 2023

🦋 Changeset detected

Latest commit: 07834bf

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 pkg: astro Related to the core `astro` package (scope) semver: minor Change triggers a `minor` release labels May 4, 2023
@github-actions
Copy link
Contributor

github-actions bot commented May 4, 2023

This PR is blocked because it contains a minor changeset. A reviewer will merge this at the next release if approved.

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
@Princesseuh Princesseuh merged commit 818252a into main May 4, 2023
@Princesseuh Princesseuh deleted the feat/assets-caching branch May 4, 2023 15:49
@astrobot-houston astrobot-houston mentioned this pull request May 4, 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) semver: minor Change triggers a `minor` release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants