magento-2-gulp icon indicating copy to clipboard operation
magento-2-gulp copied to clipboard

Pub path is invalid when document root is pub

Open Quazz opened this issue 3 years ago • 1 comments

In magento 2 you can enable it so pub is your root for the frontend (to improve security). This is recommended by the Magento team.

This means that in urls the "pub" part is dropped (since it's the root).

In env.php

'directories' => [ 'document_root_is_pub' => true ],

enables this functionality.

I guess this module would need to detect if this is enabled or not and adjust the criticalCssPath as appropriate.

Quazz avatar Sep 11 '20 15:09 Quazz