← All guides

Deployments · 7 min read · Updated August 2026

Move a Netlify site to a controlled production stack

Short answer

Start with the Git repository, build settings, deploy contexts, environment variables, custom domain, and any functions. A successful migration reproduces the production behavior and release safety, not just the static files.

Choose the right path

Static siteA static build can move cleanly once the build command, output directory, redirects, and domain are understood.
Server or functionsMap each function, form, scheduled job, and integration before choosing the new runtime.
Release safetyPreserve preview or staging checks and keep an explicit rollback path for production changes.

Walkthrough

  1. 01

    Collect the deploy configuration

    Review the repository, build command, publish directory, netlify.toml, redirect rules, environment variables, custom domain, and any functions or forms.

  2. 02

    Reproduce the build outside Netlify

    Build from a clean checkout and confirm the generated output. If the project includes server-side features, select a target that can run them rather than treating it as a static export.

  3. 03

    Keep Git as the deploy trigger

    Netlify documents continuous deployment from a connected Git repository and deploy previews. Replicate that discipline with your own CI pipeline and test environment.

  4. 04

    Verify before DNS cutover

    Test the new endpoint, redirects, forms, functions, and analytics. Change the production domain only after the replacement is serving the expected behavior.

Before calling it production-ready

  • netlify.toml and redirects reviewed
  • Build and output tested
  • Functions and integrations mapped
  • Secrets transferred safely
  • Domain and rollback plan ready

Questions founders ask

Does Netlify already support rollbacks?

Yes. Netlify documents version history and rollback capability. When moving, document an equivalent release and recovery procedure.

Will Git pushes still deploy?

Yes, through your replacement CI or deployment runner.

Can a simple site stay on Netlify?

Absolutely. Move only when ownership, architecture, operations, or cost makes a different setup worthwhile.

Where RepoAssistant fits

We help startup teams turn the right path into a working setup: review the current infrastructure, use available Azure credits deliberately, deploy the app, and leave the team with ownership and handover notes.

Primary sources