I'm using Vercel to build a static web page for one of my coding projects. It's linked up to my GitHub repo, so it's automatically rebuilding every time I push any changes to my repo. Since my project entire project (frontend and backend) is contained in a monorepo, having Vercel redeploy my frontend even if I don't push any frontend-related changes means the deployments are getting out of hand very quickly, which I don't want.
My project is organized like this:
./
/frontend
(everything else)
I tried using this command for my "Ignored Build Step" in my project's settings: git diff HEAD^ HEAD -- ./frontend
This command for some reason is ignoring any changes to frontend, and only redeploying when I push changes to anything else. This is the inverse of what I want.