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 · 2 comments
Open

Configuring Nuxt Image for Dynamic Paths in Custom Module #1246

sync42johnny opened this issue Feb 12, 2024 Discussed in #1244 · 2 comments
Labels
question Further information is requested

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

blowsie commented Feb 14, 2024

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

@Baroshem Baroshem added the question Further information is requested label Dec 10, 2024
@Baroshem
Copy link
Collaborator

Hey, what about using resolver with path to rhntime like following? https://github.com/nuxt-modules/cloudinary/blob/main/src/module.ts

If I didnt understand your question well, please correct me :)

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

No branches or pull requests

3 participants