Hello,
I have the following problem:
I have created a new Netlify site by using API. The site is supposed to connect to my private github repo. Everything goes well and the Netlify site is built successfully based on the github repo. The problem is that if I update a file or I create a new file on the git repo, Netlify will not deploy automatically the changes.
My Netlify site is: https://flawlesstest438291.netlify.app/
The API payload i’m using to create the Netlify site (something might be wrong here or something is missing):
{“name”: projectName, “repo”: {“provider”: “github”, “repo”:“gituser/gitrepo”, “private”: True, “branch”:“main”, “dir”:“/”, “deploy_key_id”:publicKeyId}, “build_settings”: {“repo_branch”:“main”, “dir”: “/”, “cmd”:“npm run build”, “deploy_key_id”: publicKeyId}}
What am I doing wrong or what am I missing?
Thank you!