Problem
When creating a new chat for an existing project running on Vercel using the NeonDB integration, a new git branch is created as expected, safeguarding main. However, the chat still uses the same production environment variables the app is running with in production.
Current Behavior
- No new
NeonDBbranch is created (though it works fine when creating a new branch outside ofv0). VERCEL_ENVandNEXT_PUBLIC_VERCEL_ENVare not set topreviewordevelopmentas expected.- This is dangerous because the development environment pushes migrations on start, which could break production.
The release article does mention new Neon branch creations so I assume something is going wrong on our side or Vercel’s: The New v0 Is Ready for Production Apps and Agents - Neon
Question
How can we proceed to debug this issue?