Skip to content

How can I stop Vercel preview deployments from appearing on pull requests? #6434

Answered by barelyhuman
mbokinala asked this question in Help
Discussion options

You must be logged in to vote

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

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@dickyindra
Comment options

@HappySean2845
Comment options

@kvedantmahajan
Comment options

@ADTC
Comment options

@addlistener
Comment options

Answer selected by mbokinala
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
8 participants