Moving off Heroku, Vercel or Firebase without downtime

A step-by-step method for leaving a managed platform: inventory, copy the data, run both side by side, switch DNS and keep a way back.

The short answer

Inventory everything the platform does for you, copy the data to a new home, run the new stack beside the old one, compare their answers, then move traffic by lowering DNS TTLs and switching. Keep the old one untouched for a fixed time as the way back. The hard parts are usually user passwords, background jobs and what the platform did invisibly.

On this page
  1. Step 1: What does the platform do for you?
  2. Step 2: What are the platform-specific traps?
  3. Step 3: Copy the data without taking anything down
  4. Step 4: Run both side by side
  5. Step 5: Prepare the switch
  6. Step 6: Switch and watch
  7. Step 7: Keep the way back, then close it
  8. What does it usually cost?
  9. Working with us

Managed platforms are a good start. Teams leave them for many reasons: cost at scale, data location demands, limits on what can run, or wanting one place for everything. Moving a live product is mostly a matter of care. The method below works for any platform. Check each platform’s current documentation for its specifics before you plan, because limits and commands change.

Step 1: What does the platform do for you?

Write a list of everything it does, including what you never configured:

  • running the app (build, start, restart on failure);
  • the database and its backups;
  • file storage;
  • scheduled jobs and background workers;
  • authentication and user accounts;
  • SSL certificates and domains;
  • environment variables and secrets;
  • logs, metrics and alerts;
  • preview deployments and rollbacks;
  • cache or CDN in front.

Each line is something you must replace. The missing line that bites is almost always one nobody remembers, such as a scheduler add-on or an automatic certificate renewal.

Step 2: What are the platform-specific traps?

Check these in the platform’s own documentation:

  • Heroku: the database is Postgres, and its documentation describes capturing and downloading a backup with pg:backups and loading it with pg_restore. Check the Postgres major version and extensions on the target match. Add-ons (queues, schedulers, caches) each need a replacement.
  • Firebase: Authentication can export users to a file with the CLI, and the documentation says password hashes use Firebase’s own scrypt variant, so you need the project’s hash parameters to verify passwords elsewhere. Firestore is a document database, and moving to a relational one is a redesign of the data model, not a copy.
  • Vercel: the hosting side is largely build output plus functions. Check what your functions rely on (edge runtime, platform-specific APIs, image optimization, cron), and what the platform’s storage and database products held.

Whatever platform you use, ask three questions: Can I export all my data in a documented format? Can I export user passwords, or will every user need a reset? What features does my code call that exist only here?

Step 3: Copy the data without taking anything down

  1. Stand up the new database and load a copy of production into it.
  2. Check the copy, table by table, with counts and checksums.
  3. Plan the final sync. Either a short maintenance window where writes stop while you copy the last changes, or continuous replication that you cut over from. For small products, a few minutes of read-only mode is simpler and safer than live replication.

Files go to S3-compatible object storage, accessed only through its API, so the next move is a configuration change. We describe the principle in designing a SaaS that can move servers.

Step 4: Run both side by side

Deploy the app on the new stack against a copy of production data, with no public address. Then compare it with the old one: same pages, same API calls, same user, old against new, until the outputs match. We did this when we moved a live CRM between databases and it caught a difference no test had; read the SQLite to PostgreSQL switch.

Make sure the rehearsal does nothing real: workers that send email or charge cards must not run on the copy, and sending must be switched off.

Step 5: Prepare the switch

  • Lower the DNS TTL on your records a day or two ahead, so changes take effect in minutes.
  • Write the stop point: until traffic is on the new stack, the switch can be called off.
  • Use a health check on the new stack, and set up an uptime monitor outside it.
  • Decide what happens to users logged in on the old system. Either sessions continue (shared secret and compatible format) or everyone signs in again.
  • Plan passwords: import verifiable hashes where the platform allows, otherwise trigger a reset flow with clear messaging.

Step 6: Switch and watch

  1. Put the old app in read-only or maintenance mode.
  2. Copy the final changes and verify.
  3. Switch DNS or the proxy.
  4. Run a real flow on the new stack: sign in, write, read back.
  5. Start workers and scheduled jobs on the new side only, and make sure they are no longer running on the old one.
  6. Watch error rates and logs closely for a day.

Step 7: Keep the way back, then close it

Leave the old system intact for a fixed time, such as one to two weeks, with the old database untouched. Any serious problem means pointing traffic back. After the period, close it on purpose and archive the data. Cancel the platform subscription only after that.

What does it usually cost?

Time goes mostly into the invisible features and the data model changes, not into the file copying. Be wary of any estimate that does not start with the inventory in step 1.

Working with us

We plan and carry out moves between platforms and servers: inventory, rehearsal on a copy of production, comparison of old and new, and a switch with a written way back. Describe where you run today and what is pushing you to leave via contact, or read about our SaaS platform work.

Keep reading

Tell us what you want to build.

A product, a website, a search problem or a system that should work better. We reply with a plain answer and the first step.

A few sentences are enough (at least 20 characters).

We use your details only to answer your inquiry. See our privacy policy.