To do so, you need:
- To use the Xata Software Development Kit (SDK) in your project
- To install the Netlify plugin like so
npm install -D netlify-plugin-xata
- Add the following lines in your
[[plugins]] package = "netlify-plugin-xata"
You are all set! Now, everytime you have a Xata branch that matches the git branch name of your Netlify Deploy Preview,
XataClient will automatically pick the correct branch.
Last modified 1 mo22 days ago