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

Configuring Nuxt Image for Dynamic Paths in Custom Module #1246

Open
sync42johnny opened this issue Feb 12, 2024 Discussed in #1244 · 1 comment
Open

Configuring Nuxt Image for Dynamic Paths in Custom Module #1246

sync42johnny opened this issue Feb 12, 2024 Discussed in #1244 · 1 comment

Comments

@sync42johnny
Copy link

Discussed in #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(

@blowsie
Copy link
Sponsor

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

2 participants