reach-digital/magento2-blank-classic-frontend

There is no license information available for the latest version (1.4.0) of this package.

1.4.0 2025-04-16 06:25 UTC

This package is auto-updated.

Last update: 2025-04-16 06:35:42 UTC


README

Module for hiding the classic Magento frontend in headless setups.

This only affects routes that use the page layout system. This means APIs that are implemented in the frontend area still function as usual (like Adyen notifications).

Allowing additional routes

To enable page layout rendering for specific routes, these can be injected into the allowedRoutes parameter of \ReachDigital\BlankClassicFrontend\Plugin\PreventLayoutRendering

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="ReachDigital\BlankClassicFrontend\Plugin\PreventLayoutRendering">
        <arguments>
            <argument name="allowedRoutes" xsi:type="array">
                <item name="swagger" xsi:type="string">swagger</item>
            </argument>
        </arguments>
    </type>
</config>

(The above example is already included in the package)

Installation

composer require reach-digital/magento2-blank-classic-frontend

Configuration

You can make the classic frontend redirect to the URL configured as base link url by setting the blank_classic_frontend/general/should_redirect configuation option.