I’m using netlify-cli to deploy a basic site. There is one static file and one function. I created a new site and set the env vars needed but deploy can’t find the site. It’s there in the UI:
Based on the information provided, This error typically indicates that the Netlify CLI is unable to locate the site specified by the NETLIFY_SITE_ID environment variable.
To resolve this issue, you can try the following steps:
Confirm that NETLIFY_SITE_ID environment variable is correctly set in the GitHub Actions workflow,
Double-check the value of secrets.NETLIFY_SITE_ID to ensure it matches the correct Netlify site ID.
If the above steps don’t resolve the issue, can try running the netlify link command manually in your local environment to link the site with your Netlify CLI setup. This command establishes a connection between the local project and the Netlify site, which should help resolve the “Site not found” error.
It’s been very hectic where I am, compounded by having unbelievably slow git commit / git push commands (at times several minutes waiting). So you end up with too many browser tabs open etc, gets very confusing, and leads to errors like that.