When using Vercel as your Remix hosting provider, there are a few things to keep in mind.
If you get dependency errors, it's most likely that Vercel stopped supporting that specific Remix version.
To fix this, create an environment variable called VERCEL_CLI_VERSION
, set it to vercel@28.16.6
, and redeploy.
Whenever you modify your Prisma schema, you have two ways of updating Vercel's schema.
Add a vercel-build
script.
Redeploy the latest Vercel Deployment unchecking "Redeploy with existing Build Cache.".
Otherwise, you could get errors in production like:
If you have this error, make sure that your Database provider is on the same region as your Vercel Deployment.
I hope this quick guide was useful! Let me know if you have any questions.
We respect your privacy. We respect your privacy.
TLDR: We use cookies for language selection, theme, and analytics. Learn more. TLDR: We use cookies for language selection, theme, and analytics. Learn more