image icon indicating copy to clipboard operation
image copied to clipboard

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

Open garyo opened this issue 2 years ago • 3 comments

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?

garyo avatar Jan 15 '23 15:01 garyo

What is the default folder for ipx?

notflip avatar Aug 07 '23 07:08 notflip

The default value for dir is public: https://image.nuxtjs.org/configuration#dir

@garyo I'm not sure if this will work, but you could try to use a preset for this: https://image.nuxtjs.org/configuration#presets https://image.nuxtjs.org/components/nuxt-img#preset

Sadarex avatar Aug 07 '23 13:08 Sadarex

I know there are some issues when using directories other than the root public dir https://github.com/nuxt/image/issues/1006

blowsie avatar Feb 14 '24 12:02 blowsie