Skip to content

Conversation

@dulapahv
Copy link
Contributor

@dulapahv dulapahv commented Nov 8, 2025

PR description

The custom Cloudflare image loader was causing Next.js warnings in development mode:

Image with src "..." has a "loader" property that does not implement width. Please implement it or use the "unoptimized" property instead.

This occurred because the loader was returning the raw src without width parameters when NODE_ENV === "development", which Next.js interprets as not implementing the width parameter.

Summary of Changes

  • Updated image-loader.ts to include width and quality params in development mode

@james-elicx james-elicx merged commit 14c3cff into opennextjs:main Nov 10, 2025
1 check passed
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