How to install stage_file_proxy on Drupal 8

First, you need to install stage file proxy with composer, note –dev is flagged to ensure this is available for development and not used for production.

composer require drupal/stage_file_proxy --dev

Next, jump to your Drupal site docroot/ and enable stage_file_proxy

drush pm-enable --yes stage_file_proxy

Finally, you want to set the origin of where files/asset are hosted.

drush config-set stage_file_proxy.settings origin https://www.example.com

And clear site cache.
drush cr

CATEGORIES:

Tips and tricks

Tags:

Comments are closed

Latest Comments