Open SavageWilliam opened 4 years ago
Hi @SavageWilliam
I have a similar question too. Have you made any progress on this?
I'd like to have multiple Next.js apps all being served under the same domain. For example:
example.com/products
example.com/checkout
example.com/account
I haven't found a way to do this with serverless-next
yet.
any progress on this? i also have similar behaviour but haven't found any solutions right now.
This was meant to be done as part of https://github.com/serverless-nextjs/serverless-next.js/issues/477 and I mistakenly closed that RFC as only part of it was completed. I've now reopened it.
Please feedback there on the proposed solution using rootPath
👍
We'd like to have a monorepo with 2 NextJS apps that access shared components. We'll deploy either both or one of these apps to various domains.
Zeit's now allows slick deployment of multiple NextJs apps to a singlar lamdba. Routing across these apps in configured in a
now.json
file.https://github.com/zeit/now-examples/issues/242
I'd like to do the same using serverless-next as our infra is all aws based. However am not sure of how to create this routing layer.