We are building a CMS for sites deployed on Netlify. A feature we want to add is the ability to generate a preview for the site configuration. Each site has a Github repo connected to the Netlify site and during build time it recovers configuration from an external DB.
In my deploys, code in the Github repo might not change, but the external configuration can. So we want to be able to trigger (via the Netlify API) a preview of the current changes without having to create branches and PRs.
I tried using the
createSiteDeploy method from the API but previews return a 404. Creating builds with
createSiteBuild will build and redeploy the entire site on the master branch, which is not what we want.
We want to deploy without affecting the current deployment.