basset
basset copied to clipboard
UriRewriteFilter for image paths in production env
I have a subfolder on my production server so the following worked to display images and fonts:
$collection->add('style.css')->apply('UriRewriteFilter')->setArguments('../');
but how do I apply that only to the production environment?
Didn't work for me, had to put this in to make images work on local dev machine (app is in a subdir):
->setArguments(NULL, array())