What is the best/easiest way to inline a dynamic SVG retrieved from CMS?

I'm trying to find what is the most easy and straightforward way to import a SVG retrieved from a CMS (So, basically I'm getting its URL, i.e. https://my.cdn.com/274945/0x0/026c911fd1/my-svg-file.svg ) and inline it in my templates. I've tried to use vite-svg-loader, but I've been unsuccessful to make it work correctly (I receive promises instead of the actual svg content, and also errors like couldn't be loaded by vite-svg-loader, fallback to default loader ) If someone has managed to achieve this, would you care to share what worked for you, so I can have a look and see if I can adapt it to work in my case too? Thanks!
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server