What is the recommended way to use Nuxt Content with Nuxt Image #2082
Replies: 2 comments
-
You can override the default ProseImg component to use nuxt-img instead of the native img tag EDIT : see the following comment #2082 (comment), my code below is not sufficient. Original code
<!-- components/content/ProseImg.vue -->
<template>
<nuxt-img />
</template> |
Beta Was this translation helpful? Give feedback.
-
The example in this discussion (#2082 (comment)) lacks, as the attributes are not transferred to the underlying component. See this solution: #390 (comment) to override the Content If you don't want to override the default |
Beta Was this translation helpful? Give feedback.
-
What is the recommended way to use Nuxt Content with Nuxt Image ?
I plan to build using
nuxi generate
and to put my images in the/static
directoryBeta Was this translation helpful? Give feedback.
All reactions