Common Errors when Deploying Remix to Vercel

When using Vercel as your Remix hosting provider, there are a few things to keep in mind.

  • Alexandro Martínez
    by Alexandro Martínez
    2 years ago
  • Could not resolve dependency

    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.


    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 questions.

    We respect your privacy.

    TLDR: We use cookies for language selection, theme, and analytics. Learn more.