In my Vue vite app, I am trying to use svg file as src attribute in html element.
<img class="..." src="/src/assets/images/bg/main-banner.svg" alt="Background">
In development, it works as expected. In production, the src attribute of the image is [object Object]. I tried every approach from Vite documentation , but none of these could fix the issue. I am using vite-svg-loader, so I can use svg files as Vue Components. Could this be somehow related to the issue?
Thank you.