Shopware resources and help articles

Simple and to the point. Optimized by the community.

Creating a custom image structure

0
by Alexander Lausten, last modified on September 8th, 2021

Shopware has an inbuilt enviroment variable called: SHOPWARE_CDN_STRATEGY_DEFAULT.

If you need a custom media structure path, or have tried migrating from a local enviroment to a production enviroment where your images suddenly is missing, then SHOPWARE_CDN_STRATEGY_DEFAULT is your goto.

This enviroment variable is responsible for the image path you find under /public/media and /public/thumbnails, where the default value for dockware is physical_filename, and the default solution for bin/console system:setup is id.

Discussion

0 comments

We use cookies to measure the performance of this website. Do you want to accept these cookies?