Magento 2 change static content folder

477 views Asked by At

Is it possible to rename static content folder? f.e from ../pub/static to /pub/statix

I saw 'base url for static view files' setting in the admin panel, but if I set it to {{secure_base_url}}/statix/ and re-deploy it, magento won't create that folder and I'll receive pages without css etc. URL will point to the statix, but there won't be that directory

Or maybe I could deploy that content to statix folder to make the urls work?

1

There are 1 answers

0
LitExtension Magento Migration On

You cannot change the paths of static directories. It is an absolute path and will automatically generate every time you redeploy the site.