Create Neon database branch for production deployment
Unanswered
Knopper gall posted this in #help-forum
Knopper gallOP
Question not related to Next.js, but Vercel and its Neon integration.
Can anyone please explain me how does this work? When I push a new preview branch to remote repo, I get a new DB branch in Neon assigned when 'Preview'(checkbox left to the red-circled one) is checked, I get that. But I do not get how checking 'Production'(checkbox I circled with red) changes anything. When I push to production, in the 'Provisioning Integrations' it does say: 'words-db: Create database branch for deployment' (check screenshot) but there is still a single 'main' branch in neon branches.
I even tried changing default branch in github, then setting it as a new branch in production environment in Vercel, when pushed new changes to that branch, it again said ''words-db: Create database branch for deployment' for that deployment. But there was still only one 'main' branch in neon dashboard in the branches section. I am asking myself how does checking this checkbox changes anything and how it creates a new branch if I have a single 'main' branch all the time?
As I understood, Neon creates a 'main' production branch at the beginning, and that serves as a production branch, but every new deployment on production environment in Vercel does not create a new prod branch in Neon even if the mentioned checkbox is checked. I am just curious how should checking this checkbox affect anything and how to see it in action?
Am I missing something, can someone clarify this setting and its purpose?
Thanks
Can anyone please explain me how does this work? When I push a new preview branch to remote repo, I get a new DB branch in Neon assigned when 'Preview'(checkbox left to the red-circled one) is checked, I get that. But I do not get how checking 'Production'(checkbox I circled with red) changes anything. When I push to production, in the 'Provisioning Integrations' it does say: 'words-db: Create database branch for deployment' (check screenshot) but there is still a single 'main' branch in neon branches.
I even tried changing default branch in github, then setting it as a new branch in production environment in Vercel, when pushed new changes to that branch, it again said ''words-db: Create database branch for deployment' for that deployment. But there was still only one 'main' branch in neon dashboard in the branches section. I am asking myself how does checking this checkbox changes anything and how it creates a new branch if I have a single 'main' branch all the time?
As I understood, Neon creates a 'main' production branch at the beginning, and that serves as a production branch, but every new deployment on production environment in Vercel does not create a new prod branch in Neon even if the mentioned checkbox is checked. I am just curious how should checking this checkbox affect anything and how to see it in action?
Am I missing something, can someone clarify this setting and its purpose?
Thanks