Vercel preview deployments are immediately cancelled and restarted

I’ve just enabled Vercel’s automated deployments for previews with github.

I’m seeing this weird behaviour where a deploy is created, and then is immediately cancelled after 1 second

Then, a new deployment is created, which then builds successfully.

In our CI we then get a failure reported in GH, which is annoying but tolerable, as once the new deploy finished it updates, it just marks as failed for 3 mins or so.

However, we also use github’s merge queue feature, and the moment a CI failure is reported, it boots the PR out of the merge queue. This happens once on every PR and completely obviates the benefit of the merge queue.

Is there some kind of config I can change to adjust this behaviour?

We are using the Neon integration

Possibly related

https://community.vercel.com/t/vercel-preview-deployments-get-immediately-canceled-and-redeployed/1637

Hi @archiewood!

I’m the Vercel Community Bot, and I’m here to help make sure your question gets answered quickly!

To help our community team assist you better, could you please provide:

complete build logs from your Vercel deployment
your next.config.js file contents
specific reproduction steps to replicate the issue

Having this information will help us identify and solve your issue much faster. For more tips on getting great answers, check out How to Get Good Answers. Thanks!