Skip to content

Fix: image service warning #299

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

luukbrauckmann
Copy link
Member

@luukbrauckmann luukbrauckmann commented Jul 24, 2025

Changes

Saw this warning in the console:

14:28:39 [WARN] [config] The adapter @astrojs/cloudflare has limited support for "sharp". Certain features may not work as expected.
14:28:39 [WARN] [adapter] Cloudflare does not support sharp. You can use the `compile` image service to compile images at build time. It will not work for any on-demand rendered images.

Moving the image service config to the adapter fixes this.

Associated issue

N.A.

How to test

Compare outputs:

This is where it occured to me: https://github.com/voorhoede/head-start/actions/runs/16499688786/job/46654533282#step:7:13

This has the fix: https://github.com/voorhoede/head-start/actions/runs/16499833417/job/46655076140#step:7:13

Checklist

  • I have performed a self-review of my own code
  • I have made sure that my PR is easy to review (not too big, includes comments)
  • I have made updated relevant documentation files (in project README, docs/, etc)
  • I have added a decision log entry if the change affects the architecture or changes a significant technology
  • I have notified a reviewer

@luukbrauckmann luukbrauckmann marked this pull request as ready for review July 24, 2025 14:40
@luukbrauckmann luukbrauckmann self-assigned this Jul 24, 2025
@luukbrauckmann luukbrauckmann changed the title Configure passthrough image service for Cloudflare Fix: image service warning Jul 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant