nuxt / nuxt/image

NuxtImage cloudflare integration

Open
#2,090 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.5k
Forks
331
Avg merge
19h 52m
Merged PRs (30d)
9

Description

The documentation for the cloudflare integration in NuxtImage is wrong.

https://image.nuxt.com/providers/cloudflare

The documentation mentions a modifiers object to use for the modifiers but these modifiers are not passed into the url. You have to use the name of the modifier as the v-binding. Example:

The fit modifier is not added to the url, the width and height modifiers are.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Cloudflare provider documentation at https://image.nuxt.com/providers/cloudflare and compare its modifiers example with the reported NuxtImg behavior. Verify which modifier-binding form includes fit in the generated URL, then update the page so the documented example matches the working behavior and check the resulting URL.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxt
Domain
documentation
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.