---
title: Prepare to move from Netlify, Vercel, or Replit
description: Check what your app uses on Netlify, Vercel, or Replit before you move it to Turn Zero Cloud.
slug: /guides/prepare-to-move-from-netlify-vercel-or-replit
order: 63
visibility: public
redirects_from: []
---

# Prepare to move from Netlify, Vercel, or Replit

Open your old host's project and publishing settings. Use its checklist to identify the code, settings, data and services you need to bring.

## Steps

### Netlify

Check what Netlify does for the app before you choose a runtime.

- **Functions and public paths.** Use [Deploy functions](/cloud/guides/deploy-functions/) if your handlers fit its limits. Turn Zero needs a default export that is an object with `fetch(request)` returning a `Response`. If you export a bare function, the local runner refuses to load it and a hosted request fails. A file such as `functions/api/contact.js` serves `/api/contact`. Match the old public paths to your function files or server routes. If the paths change, update the browser calls and rebuild the client before uploading it.
- **Redirects and rewrites.** [Manifest redirects](/cloud/guides/serve-a-web-client/#redirect-an-exact-path) cover exact paths on the same host, with `301` or `302` for `GET` and `HEAD`. Use app routes for rules that need a pattern, a rewrite, or a proxy. On a serverless app, Turn Zero serves the root `404.html` for any unmatched `GET` or `HEAD` request, including a missing asset. If there is no root `404.html`, it serves the root `index.html` for a page path if that file is present. The last part of a page path has no dot. [Netlify redirects and rewrites](https://docs.netlify.com/manage/routing/redirects/overview/).
- **Forms.** A static page can still display your form after the move. To save submissions, send its POST to a function, as in [Move a Netlify form](/cloud/guides/bring-an-existing-application/#move-a-netlify-form). A POST to a path with no function returns `404` on a static site or serverless app. Export old submissions and save any uploaded files you need separately from the site's files and database dump. Check which notifications you need to keep. [Netlify form submissions](https://docs.netlify.com/manage/forms/submissions/).
- **Build values and runtime settings.** Set browser build values, such as the API address, when you build the client. Include that build in `client/`. Manifest settings reach the server or function at runtime. An old API address in a built file stays there until you rebuild it. Keep secrets in the backend. [Netlify environment scopes](https://docs.netlify.com/build/environment-variables/overview/).
- **Scheduled functions.** Move each timed handler to [a scheduled job](/cloud/guides/add-a-scheduled-job/) that calls a route. The route must finish inside its request window. [Netlify scheduled functions](https://docs.netlify.com/build/functions/scheduled-functions/).
- **Background functions.** There is no direct match for a Netlify background function. Run short work within one request. A job that continues after the response needs a server app and an environment where the job service is available. You can also keep that work on its current service. [Netlify background functions](https://docs.netlify.com/build/functions/background-functions/).
- **Custom domains.** [Attach `www` or another subdomain](/cloud/guides/attach-your-own-domain/). Turn Zero refuses a bare domain such as `example.com`. If your DNS provider offers web forwarding, redirect the bare domain to `https://www.example.com` there.

### Vercel

- **Project.** Read the dashboard settings and look for `vercel.json`, `vercel.toml` or `vercel.ts` in the project. Note the root folder, build command, output and domains. List your integrations and find your database provider. [Vercel project configuration](https://vercel.com/docs/project-configuration).
- **Settings.** Compare production, preview and development values. Set `NEXT_PUBLIC_*` before building a Next.js app. Check those public values before you promote the build. Bind runtime settings through [the manifest](/cloud/guides/author-the-manifest/).
- **Routes.** List redirects, rewrites and headers set on Vercel. Use [manifest redirects](/cloud/guides/serve-a-web-client/#redirect-an-exact-path) for exact same-host redirects on GET and HEAD. Put other rules the app needs in its code.
- **Schedules.** Move the paths and times from Vercel Cron to [Cloud schedules](/cloud/guides/add-a-scheduled-job/). Check that each handler accepts and verifies the new request.

### Replit

Check what the published app uses.

- **Code.** Open the published version's source on your computer. Use [Replit's Git pane](https://docs.replit.com/learn/projects-and-artifacts/version-control) to sync the project with GitHub, then clone it. Check that the clone includes the code you meant to publish.
- **Build and start.** Read `.replit` and the Publishing settings for the build and run commands. Check which system programs the app uses from `replit.nix`. Build locally and check the app against [Cloud's runtime](/cloud/guides/bring-an-existing-application/#1-check-the-code-against-the-runtime). Keep the Python server on its current host, or rewrite it for a supported runtime before deploying it to Turn Zero Cloud. [Replit app configuration](https://docs.replit.com/features/project-setup/configuration).
- **Secrets.** Check both workspace Secrets and **Publishing → Adjust settings → Production app secrets**. [Store the values for each Cloud environment](/cloud/guides/bring-an-existing-application/#2-move-the-keys-off-the-old-host). Keep them out of the code and chat. [Replit Secrets](https://docs.replit.com/core-concepts/project-editor/app-setup/secrets).
- **Database.** In Replit's Database tool, select **Production Database** and open **Settings** for its connection details. Use those details in your terminal to export the live data. [Restore the dump into Turn Zero](/cloud/guides/bring-an-existing-application/#3-carry-existing-records-into-the-database). [Replit database connection details](https://docs.replit.com/features/data-and-storage/connection-details).

If the app uses any of these services, check them too.

- **Scheduled command.** Move its work into a [scheduled job handler](/cloud/guides/add-a-scheduled-job/) and check its next run time.
- **Always-running worker.** Check [when Cloud servers sleep](/cloud/concepts/how-the-plans-differ-technically/#start-after-idle-and-response-time) and how your worker resumes after a restart.
- **Stored files.** Copy the objects from Replit App Storage and check file access after you [store them on Cloud](/cloud/guides/store-files/).
- **Sign-in.** Find out whether the app uses Replit Auth or Clerk before deciding how to [bring existing users](/cloud/guides/bring-your-existing-users/).

### Continue the move

Continue when you know which code to build, which settings each environment needs and which data and services to move. If you cannot read the published app's settings or export its data, ask its owner for access before continuing.

Use the four steps in [Bring an existing application](/cloud/guides/bring-an-existing-application/) to prepare, import and deploy the app.

## Expected result

You have a list of the code to build, the settings each environment needs, and the data, services and routes to move. You know which parts can run on Turn Zero Cloud and who can provide any missing access.

## Refusals

These replies can come when you submit the manifest during the move.

| Refusal | Status | Cause | Remedy |
| --- | --- | --- | --- |
| `manifest_invalid` | 400 | A bare domain such as `example.com` has only two parts separated by a dot. | Declare a subdomain such as `www.example.com` and submit the manifest again. |
| `custom_domain_invalid` | 400 | The domain check returned `apex` for a registrable domain such as `example.co.uk`. | Declare a subdomain such as `www.example.co.uk` and submit the manifest again. |
| `serverless_no_job` | 400 | Jobs are available, and the manifest declares a `job` for a serverless application. | Remove the job and submit the manifest again. To run a job after a response, use a server application with the job service. |

## Related

- [Bring an existing application](/cloud/guides/bring-an-existing-application/)
- [Attach your own domain](/cloud/guides/attach-your-own-domain/)
