Use Cloudflare Images for external URLs in Next.js

I built a new app in Next.js and it is hosted on Vercel but their image optimization gets expensive with scale.

I’m looking for a new solution. The app displays images from external URLs that I do not control.

Can Cloudflare Images optimize images displayed from external URLs?

Yes, we can. Take a look at Image Resizing product. It allows resizing from any origins Cloudflare Image Resizing · Cloudflare Image Optimization docs

1 Like

Image optimization can work with external URLs that aren’t the same domain that we don’t have control over?

Any docs about this?

Yes, it can. You will need to enable Resize images from any origin checkbox for your zone.

Here is the documentation Integration with frameworks · Cloudflare Image Optimization docs

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.