#Remote SVG's during build process.

2 messages · Page 1 of 1 (latest)

quaint swift
#

Hi there,

All my media assets are managed on Strapi CMS, and I pull those images from the CMS in my astro components. Any PNG's, JPG's and etc get fed into the <Picture/> component, and those are then processed by the compiler at build time and they get served from the _astro folder.

My issue is that the <Picture/> and <Image/> do not work with SVG images. So right now i'm just using the regular html <img> tag, but that does not download and serve the SVG from the _astro folder. It just takes the CMS url directly.

My CMS is not on an edge network and I would like for all my images to be in the _astro folder.

Is there a way to tell the compiler to pull those images?

I know i could save them locally, but that would defeat the purpose of having a CMS.

Thanks!
Jo

vocal waveBOT
#
Still waiting for an answer?

It looks like no-one has responded to your question yet. People might not be available right now or don’t know how to answer your question. Want an answer while you wait? Try asking our experimental bot in #1095492539085230272.