DEV Community

Cover image for Unlimited environments thanks to branch deploys
Phil Hawksworth for Netlify

Posted on • Originally published at netlify.app

Unlimited environments thanks to branch deploys

Throughout December we'll be highlighting a different Netlify feature each day. It might just be the thing you need to unlock those creative juices, and dust off that domain you registered but never deployed! Keep an eye on the blog and on Twitter for each feature!

With Branch Deploys, you can say goodbye to the headaches of replicating your build and hosting environments for staging, testing, production and so on.

Now, you can have unlimited identical environments within Netlify's build and hosting infrastructure simply by creating a branch in your code repository and letting Netlify know that you'd like to build and serve that too.

Each branch of the code repository for your site gets a URL on an appropriately-named subdomain which tracks the head of the branch. And by default, each one is configured in just the same way, and is served from identical hosting infrastructure.

The days of trying to configure each environment identically, or troubleshoot their differences are over!

Configuring which branches get deployed in the Netlify Admin

You can tell Netlify to deploy every branch it finds in your repository, or just some specified branches, or ignore them all together. Visit the Build and Deploy section of your site's admin page to configure it just how you'd like.

More information

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay