reach-digital / magento2-blank-classic-frontend
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:magento2-module
Requires
- php: ^8.1.0
- magento/product-community-edition: ^2.4
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.