Skip to content

Conversation

vicb
Copy link
Contributor

@vicb vicb commented Mar 22, 2025

We recommend using https://developers.cloudflare.com/images/transform-images/integrate-with-frameworks/ for cloudflare. However /cdn-cgi/image/... are not handled by wrangler dev.

What this PR does is serve the (original) images for /cdn-cgi/image/... urls.

I plan to improve the OpenNext docs, creating an HowTo referring to the page linked above.

I created a feature request for this to be implemented in miniflare.

Copy link

changeset-bot bot commented Mar 22, 2025

🦋 Changeset detected

Latest commit: 8acf76a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@opennextjs/cloudflare Patch

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

Copy link

pkg-pr-new bot commented Mar 22, 2025

Open in Stackblitz

pnpm add https://pkg.pr.new/@opennextjs/cloudflare@491

commit: 8acf76a

@vicb vicb merged commit e9dc621 into main Mar 23, 2025
7 checks passed
@vicb vicb deleted the vicb/cfimage branch March 23, 2025 08:50
@vicb
Copy link
Contributor Author

vicb commented Mar 23, 2025

Thanks for the review!

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.

2 participants