If you are using Cloudflare as a CDN (Content Delivery Network) for your SilverStripe application, you may need to make some changes to your application’s configuration to ensure that images are displayed properly.
One thing you can try is setting the
CLOUDFLARE_IMAGE_SERVICE_URL environment variable to the URL of your Cloudflare account. This will tell SilverStripe to use Cloudflare to serve images for your application.
For example, you can set the
CLOUDFLARE_IMAGE_SERVICE_URL variable in your
.env file like this:
Alternatively, you can set the
CLOUDFLARE_IMAGE_SERVICE_URL variable in your application’s configuration file (e.g.
app/_config/config.yml) like this:
Keep in mind that you will also need to make sure that your Cloudflare account is properly configured to serve images for your application. This may involve setting up a custom origin or adding your application’s domain to your Cloudflare account.