Open beshur opened 7 months ago
Would you be able to provide a reproduction? 🙏
Okay, it works by passing the whole URL to the nuxt-image
, but is it possible to do it in a simple way without a custom provider?
<template>
<nuxt-img
:src="svgRaw"
class="icon"
v-on="$listeners"
/>
</template>
<script>
export default {
name: 'Icon',
props: {
image: {
type: String,
default: null
}
},
computed: {
svgRaw () {
return `${process.env.S3_BUCKET_URL}frontend-assets/glyphs/${this.image}.svg`
}
}
}
</script>
the purpose of nuxt-img
here is to being able to prerender the page with SVGs during build-time, and the resource is away, so it doesn't work, right?
Hi.
I am using @nuxt/image for our nuxt2 project. However it doesn't seem to work for SVGs hosted on a remote server. Do I need some other plugin to make it work?