Deploying your Remix app to Vercel

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

  • Alexandro Martínez
    Author
    by Alexandro Martínez
    9 months ago
  • Could not resolve dependency

    If you get dependency errors, it's most likely that Vercel stopped supporting that specific Remix version.

    vercel-deployment-error.png

    To fix this, create an environment variable called VERCEL_CLI_VERSION, set it to vercel@28.16.6, and redeploy.

    vercel-cli-version.png

    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.

    This website uses cookies to help personalize your online experience. Learn more.