Vercel has a build step in which you can run a custom bash script to make sure you want to build and deploy the most recent commit. An example usage of this is for monorepos. If you have both both a frontend and backend application in one repo, but you only deploy the backend in Digital Ocean, you will only want to build and deploy IF the server code was affected. When using a tool like Nx Workspace, it is difficult to detect when changes affect a specific app. You can use tools like nx-ignore to check to see if a specific project was affected by the most recent commit.
Here is a link to an article: