Skip to content

Vercel build error for Mend/Renovate preview branches with numbers #1625

@ryasmi

Description

@ryasmi

Describe the bug

The branch name is constructed incorrectly in Vercel builds for branch names with numbers.

To Reproduce

  1. Create a branch with a name like preview-user-renovate-node-20-x
  2. Create a pull request that triggers a Vercel build.

Expected behaviour

  1. A branch is created in Xata with the name preview-user-renovate-node-20-x (this is happening correctly)
  2. Vercel finds the branch during the build of static server-side rendered React pages

Actual behaviour

eA [Error]: database branch [project:preview-user-renovate] not found

Software version

Currently using "@xata.io/client": "^0.30.1",

Additional context

Started a discussion about this on Xata Discord here:
https://discord.com/channels/996791218879086662/1075788625586966637/threads/1283782987254595654

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions