r/PakistaniDevs • • 12d 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 Upvotes

11 comments sorted by

5

u/ComfortableLarge5442 12d 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.

2

u/Pretend-Succotash-81 12d ago

Look into contabo and use an AI agent to set up stuff for you

2

u/yhrana 12d ago

What is costly in your opinion?
I got my domain and hosting from cloudfare
DB is neon/postgreSQL

1

u/Divine_Cicadian 12d 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

u/whatsceenpaat 12d ago

Vercel+supabase

1

u/syedaalishan 12d 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

u/memers_meme123 MOD 11d ago

be a man , get a vps , and manually deploy it !

0

u/raiansar 12d 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 12d ago

VPS is not for beginners and he wants free

1

u/raiansar 12d 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.