Comment on page
Configuring Multi-Store
Since
magento-scripts
2.2.0In order for this config to work you need to add your host domain to the
/etc/hosts
file, for example:# /etc/hosts file
127.0.0.1 localhost
127.0.0.1 scandipwa.local # some other domain
Multi-Store configuration is available via
storeDomains
property in cma.js
.You will need to put the store code as a
key
and your desired domain name as a value
in this property, for example admin
store key and localhost
domain:cma.js
module.exports = {
// other configurations
storeDomains: {
admin: 'scandipwa.local'
}
};
Domain value must be pure like
google.com
or scandipwa.local
or similar.Subdomains can be used as well.
CMA will retrieve store codes from the
store_website
table, so make sure that the table is not empty.Last modified 21d ago