image
image copied to clipboard
Configuring Nuxt Image for Dynamic Paths in Custom Module
Discussed in https://github.com/nuxt/image/discussions/1244
Originally posted by sync42johnny February 9, 2024 I'm developing a custom Nuxt module that uses @nuxt/image for image optimization. My aim is to serve images from a directory relative to the module's runtime directory. Here's my current setup:
installModule('@nuxt/image', {
providers: {
customIPX: {
}
},
image: {
}
});
I'm looking for advice on: configuring my module to use @nuxt/image for runtime-relative image paths, because now nuxt image grabs images from project where i use my custom nuxt module(
I know there are some issues when using directories other than the root public dir https://github.com/nuxt/image/issues/1006