I was trying to integrate github/gitlab repository while creating a site with certain env variable configuration by using api.
I have sent “build_settings” and “deploy_hook” parameter at the time of site creation but it was ignored.
Could you please help me on that.
"build_settings": {
"cmd": "yarn build",
"dir": "build",
"env": {
"REACT_APP_DATO_API_TOKEN": "xxx",
"YARN_FLAGS": "--no-ignore-optional"
},
"private_logs": null,
"allowed_branches": [
"master"
],
"functions_dir": null,
"skip_prs": null,
"untrusted_flow": "review",
"base_rel_dir": true,
"stop_builds": false,
"public_repo": true,
"provider": "github",
"repo_type": "git",
"repo_url": "https://github.com/PrasenjitChowdhury/datocms-react-lodging-spa-demo",
"repo_branch": "master",
"repo_path": "PrasenjitChowdhury/datocms-react-lodging-spa-demo",
"base": null
}