Vercel integration is not setting the XATA_BRANCH
errors: [
{
message: 'database branch [...:preview-nativedone-chore] not found',
status: 404
}
],
requestId: '98359d30-6eb2-9c6b-810b-54730a0e3956',
3 Replies
I have already uninstalled and installed again but the error persists.
hi, could you check the comment message from the Xata bot on the PR? It might include some hint on why it failed.
Hi, the XATA_BRANCH is not set because in Vercel it is automatically "inferred" with the Vercel integration (the XATA_PREVIEW env var is set to "preview"). With this setting, Xata's PR-Based Workflow automatically detects the Xata preview-* branch associated with the PR and uses that in Vercel's preview environment.
For your other environments, you'd need to set the XATA_BRANCH env var.