N
Neon4mo ago
stormy-gold

Hi All - a couple quick questions, hoping someone can kindly help me

I have been trying to play around with the environments feature and branching for Neon. I am trying to deploy preview branches through v0, which is working, and it deploys a preview Neon DB branch as well - however, when I make schema changes through v0 - they still go into the prod database - rather than into the preview branch. Can you please let me know in case I am missing anything - and if there is a right process to do it especially through v0. I have connected my Neon database through v0, and then updated project details from within vercel "project" settings so that it deploys the preview branch on preview deployments.
1 Reply
flat-fuchsia
flat-fuchsia4mo ago
Have you tried explcitly specifying the ID of the branch you want to apply the schema changes to? You can find the branch ID in the Neon Console. Click Open in Neon from the Storage tab in Vercel and go to the Branches page in the Neon console.

Did you find this page helpful?