Inline content images using wrong path

The closest question I could find to my issue was here

I used the nuxt blog starter

I am trying to add images to my content, on the backend the image has been uploaded and added to the blog post with this markdown


The problem is on the frontend this path resolves to


whereas the image is actually here


How can I configure my frontend to use the backend url when creating image URLs?

I notice banner images on the blog have correct URLs i.e.


This is because they use the getStrapiMedia function to prepend the correct URL to relative paths. Since the inline images are part of the content they are rendered by markdown-it - so how do I configure this to also use getStrapiMedia?

Can this be resolved by deploying my backend?

1 Like

Not been working too much with NuxtJS etc, but Iā€™m guessing you could use something like this? @nuxtjs/proxy - npm which you can set the proxy on the port. @Pixelomo

1 Like

@Eventyret 's answer helped me resolve this issue because I am using angular with strapi, and I have searched all over the internet. The solution was actually to use a proxy. I got mine from Angular follow the instructions changing /api to /uploads and that was it.