Skip to content

Conversation

@pilcrowonpaper
Copy link
Contributor

Add docs on image optimization API (opennextjs/opennextjs-cloudflare#999).


## Image Optimization

Next.js has a builtin [`<Image>` component](https://nextjs.org/docs/pages/building-your-application/optimizing/images) to automatically optimize your images for faster page loads.
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should add a note here saying that optimizing images with the adapter requires either an image binding or a custom loader and if none are provided, images are served unchanged

Copy link
Contributor

@vicb vicb left a comment

Choose a reason for hiding this comment

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

Thanks, looks great.

One comment/suggestion for the intro

@pilcrowonpaper pilcrowonpaper marked this pull request as ready for review November 28, 2025 10:40
@pilcrowonpaper
Copy link
Contributor Author

@vicb Updated the PR!

@vicb
Copy link
Contributor

vicb commented Nov 28, 2025

Actually you could also update the getting started at https://opennext.js.org/cloudflare/get-started#3-create-a-wrangler-configuration-file.

@pilcrowonpaper pilcrowonpaper requested review from a team and james-elicx as code owners November 28, 2025 10:45
@pilcrowonpaper
Copy link
Contributor Author

@vicb Updated the get started page as well

@vicb vicb merged commit 12b2623 into opennextjs:main Nov 28, 2025
1 check passed
@pilcrowonpaper pilcrowonpaper deleted the cf-image-component branch November 28, 2025 10:58
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