image icon indicating copy to clipboard operation
image copied to clipboard

Configuring Nuxt Image for Dynamic Paths in Custom Module

Open sync42johnny opened this issue 1 year ago • 1 comments

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(

sync42johnny avatar Feb 12 '24 09:02 sync42johnny

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