We started as a single page application, which means:
Expectation is that we're super fast and the customer experience is great
Codesplitting solves everything!
Codesplitting is the technique of loading code as the user requires it. So if you navigate to the homepage, you only get code required for this homepage and navigating to another page loads more code.
Hint
This is the technique of executing your client side code on the server and pushing not just Javascript to the client but actual HTML.
Hint
Nginx proxies all requests to different SPA - think of it as an API gateway
Each SPA has its own specific set of business logic. Each can be independently built, deployed, scaled, tested. Can even build teams around these if they grow too big.
But the benefits outweigh the new challenges by a lot in my opinion. Things are in general more manageable and easier to change.