I’m using branch deploys AND branch subdomains to setup some subdomains for my site and I basically need the main domain to always redirect to my subdomain, like so:
Now, I was able to achieve this behavior using 2 different redirects (between the branches), but I was wondering if it’s possible to delete everything but the netlify.toml from the master branch and have some sort of dummy build command not to build the entire CRA app when pushing anything to master? Granted nobody will push anything to master, but I sort of wanted to cleanup that branch to be honest, since it doesn’t need to have the entire app code.
Hey, thank you for your reply. So can I literally delete everything else in that branch and just leave the index.html and netlify.toml (or _redirects) file in the root dir?