Serve theme and plugins assets from correct domain on multi-domain multisite

I am having a problem with serving static theme assets and plugins assets from the correct domain on our multisite sage website. We have 2 different domains for the multisite. The first domain is maindomain and the second is let’s say otherdomain

So everything works okay when we are on our main multisite with domain maindomain. But when we visit otherdomain, there is a problem with fonts (and other static assets), because they are being served from maindomain, not otherdomain

Sage theme dist are served from maindomain.com/app/sage-theme/dist/..
instead of otherdomain.com/app/sage-theme/dist/..

Plugins are served from maindomain.com/app/plugins/plugin-name/plugin-assets instead of otherdomain.com/app/plugins/plugin-name/plugin-assets

Images are served from maindomain.com/app/uploads/sites/2 instead of otherdomain.com/app/uploads/sites/2

I did come across a WordPress ticket that could be related to the problem: https://core.trac.wordpress.org/ticket/25650

But I am not entirely sure if it’s not the problem in the Sage theme itself…

Here is the config:

All info and feedback will be appreciated! Thanks!