Magento 2Multi Website Domain Setup in Magento 2 using DDEV2 Comments2 Min Readyou can setup additional domain by adding entry of your additional domain in the additional_hostnames inside the .ddev/config.yaml file.
Magento 2Magento 2: How to get all websites list programmatically?0 Comments2 Min ReadMagento provides Magento\Store\Api\WebsiteRepositoryInterface:getList() to fetch all store lists and store-related information.