N
Neon2y ago
robust-apricot

Looking for Prisma + Vercel production guide

Hey people! I am exploring neon for my next project and wanted to make things right from the very start. I plan to use Prisma + Neon hosted on Vercel. Is there any good guide that would show me how to set it up, mainly migration-wise. I see a lot of good guides in terms of just setting up the connections, pg-bouncer, and stuff but kinda missing the step-by-step guide on how to properly evolve the schema & database on production. I assume I would create new neon branches for PRs, then migrate there, and then somehow reconcile the neon feature branch into the prod branch when merging the feature. Still I am kinda guessing here 😄 Would love to see some production setup example repo or guide, probably it exists and I missed it. Thanks a lot for the help!
3 Replies
eastern-cyan
eastern-cyan2y ago
Hey, we're looking at developing some docs in this area. Please take a look at this blog post: https://neon.tech/blog/branching-with-preview-environments I'd be interested in knowing if it offers what you're looking for. We also offer a Neon Vercel integration, which creates a Neon branch for each preview deployment, but the documentation does not speak to migrations specifically: https://neon.tech/docs/guides/vercel
Neon
A database for every preview environment using Neon, GitHub Actions...
Learn how to create a Neon branch for every preview environment using Neon, GitHub Actions, and Vercel.
Neon
Connect with the Neon Vercel Integration - Neon Docs
This guide describes how to connect using the Neon Vercel Integration from the Vercel marketplace. The integration connects your Vercel project to a Neon database and enables creating a database branc...
robust-apricot
robust-apricotOP2y ago
Thanks, I was actually figuring it out myself and have the full setup Maybe will find time to contribute
eastern-cyan
eastern-cyan2y ago
Would be great to see your setup!

Did you find this page helpful?