There must be a simple answer for this but despite fumbling around with it for quite a while and searching the web for answers I am stymied. Perhaps I'm approaching it in the wrong way. I'm feeling like a beginner and I may not be using the right terminology here.
Here is a similar question without an accepted answer: How to setup assets in multi site where each site should have its own assets?
I have two sites, Site A and Site B, with their own assets folder. They are separate sites that will not share assets at all and it would be ideal to keep them completely separate (just as the templates are separated in folders with each Site's handle).
/site-a -- /site-a-assets /site-b -- /site-b-assets
I've seen that
@web should not be used for Asset Volumes' Base URL when using multi-site, but I haven't been able to understand how to set up
config/default.php to accommodate different addresses for different sites AND different environments (e.g. dev, production). I've seen mention of using aliases but don't understand yet how to make them work with multiple sites to have different values for the same alias depending on which site you're viewing and in which environment.
I have this for my local
config/default.php inside of environment settings:
'siteUrl' => [ 'site-a' => 'https://org.site-a', 'site-b' => 'https://org.site-b', ]
It feels like I'm close but I can't get the pieces put together.
Any pointers you can give will be greatly appreciated!