Vercel Integration not deleting merged-PR branch database
Hey there, I have Neon+Vercel integration set up for creating branched databases on each PR.
The branches are created successfully, but they're not automatically deleted after the PR is merged.
I noticed in the docs that there should be a "Branches" tab in the Vercel integration config, but I don't see one.
3 Replies
ratty-blush•3mo ago
Are you using the native Neon integration (visible on the Storage tab in Vercel)? The native integration does not support automatic branch deletion. We have two integrations with Vercel:
https://neon.com/docs/guides/vercel-overview
Neon
Neon and Vercel overview - Neon Docs
Neon supports different options for integrating Neon and Vercel, including a native integration that you can install from the Vercel Marketplace, a "previews integration" that creates a database branc...
rare-sapphireOP•3mo ago
Hey Daniel, yes!
I'm using the native Vercel-Neon integration to generate branched databases.
In this case, would the best approach be to write a Github Action to manually delete the branch?
ratty-blush•3mo ago
Hi @Caio yes, that might be the best option for you for automating branch deletion. We have this action, which you can customize as needed: https://github.com/marketplace/actions/neon-database-delete-branch