Prepare to move from Netlify, Vercel, or Replit #

View this page as Markdown

On this page

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 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 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.
  • 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. 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.
  • 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.
  • Scheduled functions. Move each timed handler to a scheduled job that calls a route. The route must finish inside its request window. Netlify 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.
  • Custom domains. Attach www or another subdomain. 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.
  • 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.
  • Routes. List redirects, rewrites and headers set on Vercel. Use manifest redirects 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. 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 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. 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.
  • Secrets. Check both workspace Secrets and Publishing → Adjust settings → Production app secrets. Store the values for each Cloud environment. Keep them out of the code and chat. Replit 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. Replit database connection details.

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

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