Skip to content

Using custom image provider in a nuxt module for multiple projects #1629

Answered by momi-aura
momi-aura asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Baroshem
I found a "solution". But forgot to update this :)

I added addImportsDir(resolve(runtimeDir, 'providers')) to my module.ts. And now i can use the custom provider like this:

image: {
    providers: {
      umbracoImageProvider: {
        name: 'umbracoImageProvider',
        provider: 'node_modules/@library-ui/components/dist/runtime/providers/umbraco-image-provider',
        options: {
        }
      }
    }
  }

So it somewhat solves the issue i was having, i would however have prefered if it was possible for me to register the provider inside my module, and then just use it directly inside my other projects :)

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@momi-aura
Comment options

Answer selected by Baroshem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested discussion
2 participants
Converted from issue

This discussion was converted from issue #1616 on December 11, 2024 11:47.