Netlify

Xata offers a first class integration with Netlify and its Deploy Previews. With this plugin, you can synchronize your Xata branch with your Netlify deploy preview branch.

To do so, you need:

npm install -D netlify-plugin-xata
1
2
[[plugins]]
package = "netlify-plugin-xata"

You are all set! Now, every time you have a Xata branch that matches the git branch name of your Netlify Deploy Preview, XataClient will automatically pick the correct branch.