I’m using Netlify to deploy my sites and use branch deploys for previewing content / changes. Master branch goes to mymainsite.com, develop branch goes to develop.mymainsite.com: default Netlify behaviour if you use their DNS.
If I want to set up these two environments in DatoCMS, the second one always gives me an error (any particular order): I presume because I can only have one Netlify integration? The buildhook has been created in Netlify after getting the error.
The error is
Couldn't create build trigger!
Failed to load resource: the server responded with a status of 422 ()
"t: Submit Validation Failed at Module.h (https://assets.admin.datocms.com/assets/main.bundle.js:14:172375) at https://assets.admin.datocms.com/assets/admin.bundle.js:1:132079 at https://assets.admin.datocms.com/assets/admin.bundle.js:1:130179 at Object.next (https://assets.admin.datocms.com/assets/admin.bundle.js:1:130284) at o (https://assets.admin.datocms.com/assets/admin.bundle.js:1:128998)"