Building Multi Tenancy Application with multiple Databases in NextJs
I would like to develop a Saas application that is based on multi-tenancy. Each customer should have their own database to ensure general performance and security.
I would like to implement the whole thing in NextJS, Prisma and Postgresql. How is it possible to retrieve the databases depending on the user?