SaasRock uses Supabase as it's PostgreSQL database provider, but there are a few things to be aware of when hosting in a Serverless environment like Vercel.

Development Connection String

Seed your remote database or test locally using the following Connection String configuration:


Production Connection String

If you deploy your app to a serverless environment, you need to use the Connection Pooling configuration:


Otherwise you could get error the following error:

Remaining connection slots are reserved for non-replication superuser connections
Connection slots error

I hope this quick guide was useful! Let me know if you have any question.