Hey everyone! I’ve been away from web development for almost a decade, and I’m having a blast getting back into it.
What I’m struggling with is figuring out the best practices for updating production apps as a solo developer using Supabase, Next.js, and Vercel. I’m all about finding the easiest and fastest tools, even though I know they can be pricey, but I want to keep things simple.
A lot of times, when I try to integrate things like Stripe or Google OAuth, they don’t work well locally, and I end up having to push to production just to be sure they’re functioning properly.
I’m also a bit anxious about database migrations and Supabase branching—if anyone’s familiar with those!
What do you all recommend as best practices? Should I develop locally, then push to a Supabase branch for testing, and once it’s all good, merge and push to production? Should I have code that behaves differently depending on whether it’s local, development, or production?
And how about keeping one development branch open forever? Should I merge and just not delete it?
I’m eager to read or watch anything you suggest. Thanks a ton in advance!
6 Likes
Hey there! Welcome back to the dev scene! For your workflow, I’d suggest keeping a development branch open for ongoing features. Push to that branch, test everything, and only merge to production when you’re 100% sure. It’ll save you from a lot of headaches later on!
3 Likes
Great question! What I do is develop locally and test everything thoroughly. Once I’m happy, I push to a branch on Supabase for a final check before merging into production. It might sound like a lot, but it really helps catch those last-minute issues.
3 Likes
Welcome back! I feel you on the anxiety with DB migrations. I’d recommend taking it slow—set up your local environment to mimic production as closely as possible. For Stripe and OAuth, testing in a staging environment first can be a lifesaver!
2 Likes
Hey! As a fellow n00b, I can relate. For branching, I usually have a “development” branch where I test new features, and I only merge into the “main” branch when I’m confident everything works. Keeping your branches around is fine as long as it doesn’t get too messy!
1 Like
Hey there! When it comes to working with Supabase and migrations, I’d recommend using the built-in tools for version control. It helps track changes and can roll back if something goes wrong. Just remember to back up your database regularly!
1 Like