SaasRock hosts on Vercel.

Prisma Schema Changes

Whenever you modify your Prisma schema, you have two ways of updating Vercel's schema.

  1. Add a vercel-build script.
  2. Redeploy the latest Vercel Deployment unchecking "Redeploy with existing Build Cache.".

Otherwise you could get errors in production like:

Schema error


504 Gateway Timeout

If you have this error, make sure that your Database provider is on the same region as your Vercel Deployment.

504 Gateway Timeout

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