Skip to content

Migrate from Vercel to Varity

Varity Team Core Contributors Updated May 2026

Move your existing Vercel app to Varity in under 3 minutes. The migration tool removes Vercel-specific code, installs Varity packages, and deploys your app automatically.

  • vercel.json: removed
  • @vercel/* npm packages: removed from package.json
  • Next.js image optimizer config (unoptimized: true): set automatically
  • Vercel-specific environment variable names: renamed to Varity equivalents
  • Edge runtime declarations: updated

All changes are backed up to .vercel-migration-backup/ so you can roll back.

The fastest path is to ask your AI editor to migrate for you.

Ask your AI editor:

“Migrate my Vercel app at https://github.com/username/my-app to Varity”

The varity_migrate MCP tool will:

  1. Clone your GitHub repository
  2. Remove Vercel-specific artifacts
  3. Build the transformed app to verify it compiles
  4. Deploy to Varity and return a live URL

To preview what would change without deploying:

“Do a dry run migration of https://github.com/username/my-app

  1. Install the CLI (if you haven’t already)

    Terminal window
    pipx install varitykit
  2. Preview what will change (optional)

    Terminal window
    varitykit migrate --url https://github.com/username/my-app --dry-run

    Or for a local directory:

    Terminal window
    varitykit migrate --path ./my-app --dry-run
  3. Run the migration

    Terminal window
    varitykit migrate --url https://github.com/username/my-app

    This clones your repo, applies codemods, and deploys to Varity. Your app will be live at a varity.app URL.

Use subcommands if you want to inspect changes before deploying:

Terminal window
# 1. Analyze only (read-only, no changes)
varitykit migrate analyze ./my-app
# 2. Apply codemods but don't deploy
varitykit migrate apply ./my-app
# 3. Deploy when ready
varitykit app deploy --path ./my-app
# Undo all codemods if something goes wrong
varitykit migrate rollback ./my-app
  • Your app runs on Varity infrastructure with database and hosting included
  • Environment variables are managed automatically. No manual configuration needed
  • Review any warnings from the migration output and fix manually if needed
  • Set a custom subdomain or check the cost of your new deployment

If the transformed app fails to build, common causes are:

  • TypeScript errors introduced by removing @vercel/* peer dependencies
  • Edge runtime APIs not available outside Vercel (check warnings in migration output)

Fix the errors in your source repository, then run varitykit migrate again.

Terminal window
varitykit migrate rollback ./my-app

This restores all files from .vercel-migration-backup/.