I'm working with a startup who have made some decisions over a couple years that have created a codebase that has no real patterns and our performance is obviously suffering because of this. To help engineer our way out of this mess a thought was to setup a new NextJS project that is clean and start migrating specific components and functionality into a known pattern. The idea to eventually kill off the legacy codebase over the course of a year or so.
Is there a known NextJS pattern or interoperability for running 2 apps side by side? Or 1 app inside another? I know I can throw a proxy in front and send requests to different application clusters but I was trying to avoid that if there was a more NextJS way.