Incorrect img src generated - leads to 404 error

System Information
  • Strapi Version: 4.9.2
  • Operating System: Ubuntu
  • Database: PostGres
  • Node Version: 14.21.3
  • NPM Version: 9.6.5
  • Yarn Version:

Hi there - I am able to upload images using the S3 upload tool without issue. My issue is however, the img src is incorrect and is generated to https://api.mydomain

I can provide my plugins.js and middleware.js but I am not sure that is the issue - has anyone seen this before?

I believe it is an issue with your config. I know the google cloud provider dynamically replaces the baseUrl with what is in the code, so if it changes, you have to update all the urls in your database. Very annoying.