#How to run 2 NextJS Apps side by side with seamless experience

8 messages · Page 1 of 1 (latest)

sly swallow
#

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.

quiet kayakBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

lyric stirrup
#

Is there a known NextJS pattern or interoperability for running 2 apps side by side....
why? if you want to refactor code just work with it separately and then when it will be ready kill old version.

sly swallow
lyric stirrup
sly swallow
#

we don't use vercel

#

we outgrew that a while ago

potent owl
#

Use the old system as the backend server, then keep migrating to nextjs project