Custom domain for Strapi image uploads not working
### Node Version

20.0

### NPM/Yarn/PNPM Version

11.1.0

### Strapi Version

5.8.0

### Operating System

Strapi Cloud

### Database

Strapi Cloud

### Javascript or Typescript

Javascript

### Reproduction URL

_No response_

### Bug Description

I configured a custom domain for my Strapi uploads, but the images are not being served correctly.

### Steps to Reproduce

1. Set `baseUrl: "https://content.stitchflow.com"` in `config/plugins.js`
2. Restart Strapi (`npm run build && npm run start`)
3. Fetch images via API, but they still return from `*.media.strapiapp.com`
4. Images fail to load in Next.js

### Expected Behavior

Images should load from `https://content.stitchflow.com/uploads/filename.png`

### Logs

```shell
Actual Result
Images still load from `https://healing-event-e815d1d155.media.strapiapp.com/filename.png`
```

### Code Snippets

_No response_

### Media

_No response_

### Additional information

### Strapi Version
- Strapi v5.8

### Confirmation Checklist

- [x] I have checked the existing [issues](https://github.com/strapi/strapi/issues) for duplicates.
- [x] I agree to follow this project's [Code of Conduct](https://github.com/strapi/strapi/blob/develop/CODE_OF_CONDUCT.md).