Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
garyo opened this issue Jan 15, 2023 · 3 comments
Open

Comments

@garyo
Copy link

garyo commented Jan 15, 2023

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?

@notflip
Copy link

notflip commented Aug 7, 2023

What is the default folder for ipx?

@Sadarex
Copy link

Sadarex commented Aug 7, 2023

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

@blowsie
Copy link

blowsie commented Feb 14, 2024

I know there are some issues when using directories other than the root public dir
#1006

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants