Questions about Vercel services

I’m creating an application that the front-end is in Next.js, the back-end is in Nest.js + Prisma and the database is Postgres. The front-end does not have direct access to the database. I would like to know if it is possible to use Vercel’s infrastructure for all these layers of my application, remembering that communication with the Postgres database will be handled by the back-end built in Nest.js + Prisma.

thanks a lot

Matheus

Hi @matsilva06-gmailcom! It’s possible to use Vercel for the client-side and server-side (i.e. API) layers of the application. The database would need to either be Vercel Postgres or be hosted elsewhere. The available database integration options can make connection to an external database easier if you choose that route.

People do sometimes run into some trouble deploying Nest projects in serverless environments. There are some resources available to help you get it configured. Quite a few people have been kind enough to share what worked for them:

Alternatively, you could use a traditional server for the server-side layer of your app.

3 Likes

Thanks a lot, @amyegan.

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.