Deploying site on branch without build command

Hi :wave: I have my main site deploying fine from my master branch but I also have a few branches that contain (very) old versions of my site which are just plain html, css that didn’t use any sort of generator or build tool.

Is there a way I can deploy these so they will be accessible using the branch deploy feature like so branch-name.domain-name?

Thanks!

Sure. You can set per-branch contexts in netlify.toml (File-based configuration | Netlify Docs), something like this were your branch called “old-branch-1”:

[context.old-branch-1]
  command = ""

that will mean that when we see a (dummy) commit on old-branch-1, we “build” by just copying the files, and we then automatically make a branch subdomain (cf [Support Guide] How to use Netlify’s branch deploy feature without Netlify DNS if you aren’t using our DNS) available.