-
Notifications
You must be signed in to change notification settings - Fork 210
Environment variables
Mischa Braam edited this page Feb 16, 2024
·
2 revisions
See https://laravel.com/docs/10.x/valet#site-specific-environment-variables
An example of .valet-env.php
can be;
<?php
return [
'sitename1' => [
'MAGE_RUN_CODE' => 'storecode1',
'MAGE_RUN_TYPE' => 'store',
],
'sitename2' => [
'MAGE_RUN_CODE' => 'storecode2',
'MAGE_RUN_TYPE' => 'store',
],
];
A couple of notes:
-
sitename1
is the folder name within your Valet+ parked folder with the multi-store Magento installation. - Use
valet link sitename2
within the same folder assitename1
to also linksitename2.test
to the same installation. - Make sure you update the base URLs within Magento's config.