nuxt / nuxt/image

Uploadcare proxy feature

Open
#1,389 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Uploadcare has a proxy feature which allows you to use the features of their resizing, format change etc, but with an image which is hosted elsewhere.

I'd like to be able to use this in conjunction with NuxtImg/NuxtPicture. At the moment I don't think this is possible. The proxy requires on the fly operations to be inserted before the source URL, and the top-level domain to be the proxy domain:

https://endpoint.ucr.io/-/preview/-/resize/500x/https://yoursite.com/assets/image.jpg

I think we'd need:

  • To be able to supply a top-level domain as a parameter to NuxtImg/NuxtPicture, rather than just as a global parameter in nuxt.config.ts
  • The code to be smart enough to insert the on the fly operations before the source URL.

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 by tracing how NuxtImg/NuxtPicture receive provider configuration and how the global setting is read from nuxt.config.ts. The work is done when a component can supply its own top-level proxy domain and the generated URL places Uploadcare's on-the-fly operations before the remote source URL.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxt, typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.