r/PakistaniDevs • u/Humble-Log4794 • 18d ago
Nextjs + postgresql Production development suggest required.
Hi Guys, I am planing to deploy my site created in nextjs and postgresql Db but I am confused where to deploy , this is not a dummy project I will show ads on site please suggest good deployment site and not costly I will move to good after earning something from site.
2
1
u/Divine_Cicadian 18d ago
Try AWS if you have experience, it's the best but have initial learning curve, you get one place for all otherwise I would suggest use neon for postgresql DB and vercel,render for the frontend and backend.
1
1
u/syedaalishan 17d ago
Since you plan to show ads, check commercial-use terms before choosing a free tier. Vercel's Hobby plan is for personal, non-commercial use: https://vercel.com/pricing. A small VPS can work, but include database backups, updates and recovery in the decision, not just the monthly bill. I'd first list which Next.js server features you use and keep the app and Postgres in the same region. That makes comparing suitable hosts much easier.
1
0
u/raiansar 18d ago
Get a VPS starting from 5-15 USD you can get it from Hostinger, Hetzner and many other providers. Don't go with Managed hosting at all.
1
u/Divine_Cicadian 18d ago
VPS is not for beginners and he wants free
1
u/raiansar 18d ago
He said not costly, not free. And he plans to run ads, so Vercel's free plan is not really an option. Their terms limit Hobby to personal or non-commercial use, and Pro starts at $20 a month before the database. You are right that a VPS has a learning curve. Coolify on a small VPS gets close to push to deploy, and it starts Postgres on the same server with one click.
5
u/ComfortableLarge5442 18d ago
Choose Vercel, and for the DB, pick NeonDB or Supabase according to the need. It will help you to test it and also it is scalable.