I have a single Next.js app deployed on Vercel on app.mydomain.com. I have the Vercel integration set up so that every time I push to the main branch, the app gets deployed to app.mydomain.com (a custom domain I added in the Vercel project).
I’d like to use Turborepo and separate this app into two Next.js apps, one should be deployed on app.mydomain.com, and the other one should be deployed to other.mydomain.com.
Does the Vercel integration support this? Are there any repo examples or docs about this setup?
Thanks!
Hey! The Vercel Integration does support this - you can checkout the docs for setting up a monorepo here: Using Monorepos.
At a high level, you’ll want to configure two projects on Vercel that are connected to the same repo. You can configure your domains for each project independently. You will likely want to specify a unique root directory for each project as well: Configuring a Build.
Let us know if you need more help!
2 Likes
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.