nuxt / nuxt/image

Cloudflare Provider - Domain Validation

Open
#1,693 0 comments 2 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 Cloudflare provider for Nuxt Image currently forces validateDomains: false without any way to configure it. This means all images get optimized regardless of their domain, which isn't ideal for every use case.

Being able to toggle validateDomains would let you choose which domains get optimized through Cloudflare's Image Optimization service. For example, optimizing local assets while having external domains disabled within Cloudflare Image Optimization settings.

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

Locate the Nuxt Image Cloudflare provider and inspect where validateDomains is currently forced to false, along with the provider's configuration and tests. Add a way to toggle the setting, then verify that the chosen value controls which domains are optimized through Cloudflare Image Optimization.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxt, typescript
Domain
web-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.