Replies: 1 comment
-
|
They solve different parts of the problem:
In your example, this part configures the Contentful provider: contentful: {
baseURL: 'https://images.ctfassets.net'
}and this tells Nuxt Image to use that provider for the component: <NuxtImg provider="contentful" :src="hoge.file.url" />
So the mental model is: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Let me ask you a question.
I'm trying to adopt nuxt/image with Nuxt3 and Contentful. I learned that setting providers is necessary to get remote images from the CMS's server, but what is the difference between
domains,provider, andbaseURL?Tell me which part of the code below is duplicated?
Beta Was this translation helpful? Give feedback.
All reactions