How can I stop Vercel preview deployments from appearing on pull requests? #6434
-
Vercel automatically deploys code pushed to my master branch to production, and I would like to keep this functionality. However, Vercel also creates preview deployments for each push, and when I create a pull request, this deployment shows up under 'Checks.' Is there a way to stop this from happening? I don't have an issue with Vercel creating a preview deployment for each push I make, but I would like for Vercel's deployment not to appear under the 'Checks' section of each pull request. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
While I understand you don't want the preview to show on the the PR's , you can kind of disable the build step for all other branches which a shell command that vercel currently executes. You can find this in Project> Example Project > Settings > Git > Ignored Build step, this will not create new builds and thus never create a preview or update the PR based on the command you put in there. Which can be a single line command to check for branch | push | etc. You can read more about it here. |
Beta Was this translation helpful? Give feedback.
While I understand you don't want the preview to show on the the PR's , you can kind of disable the build step for all other branches which a shell command that vercel currently executes.
You can find this in Project> Example Project > Settings > Git > Ignored Build step, this will not create new builds and thus never create a preview or update the PR based on the command you put in there.
Which can be a single line command to check for branch | push | etc.
This is not the perfect solution, but a hack for now.
You can read more about it here.
https://vercel.com/docs/platform/projects#ignored-build-step