nuxt / nuxt/image

Is it possible to use different source dirs with default IPX provider?

Open
#711 3 comments 1 reaction 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

I'd like to have some of my <nuxt-img> pull from public/, but others from assets/photos. I see I can configure it globally, but is there any way to specify a different dir as a property to nuxt-img itself?

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 reviewing the default IPX provider configuration and the nuxt-img component's property handling. Determine whether an instance-level dir can coexist with the global source directory, then verify that images from public/ and assets/photos can select their respective sources without changing existing global behavior.

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.