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

feat: add noop service and make integrations that needs it use it #7903

Merged
merged 2 commits into from
Aug 2, 2023

Conversation

Princesseuh
Copy link
Member

Changes

For Cloudflare, Deno, Vercel Edge and Netlify Edge, who don't support Squoosh or Sharp, we instead provide an image service that does nothing

Testing

Tested manually

Docs

This shouldn't affect user behaviour from experimental.assets, as previously well, it didn't work. Happy to document this though if @withastro/maintainers-docs feels it's necessary!

@changeset-bot
Copy link

changeset-bot bot commented Aug 1, 2023

🦋 Changeset detected

Latest commit: 90ffd3d

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: integration Related to any renderer integration (scope) pkg: astro Related to the core `astro` package (scope) labels Aug 1, 2023
@ematipico ematipico requested a review from a team as a code owner August 1, 2023 15:01
@github-actions github-actions bot removed the pkg: integration Related to any renderer integration (scope) label Aug 2, 2023
Copy link
Member

@natemoo-re natemoo-re left a comment

Choose a reason for hiding this comment

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

Just a suggestion on the warning message.

Also noop is a fine name, but maybe unoptimized or passthrough is more descriptive?

packages/astro/src/integrations/index.ts Outdated Show resolved Hide resolved
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
@Princesseuh Princesseuh merged commit 1962392 into next Aug 2, 2023
13 checks passed
@Princesseuh Princesseuh deleted the feat/noop-image-service branch August 2, 2023 18:28
ematipico pushed a commit that referenced this pull request Aug 3, 2023
)

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
ematipico pushed a commit that referenced this pull request Aug 8, 2023
)

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
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.

None yet

4 participants