Loading video...

Video Failed to Load

Go Home

📹 Self-Hosting Next.js Learn how to deploy Next.js, Postgres, and Nginx to a $4 VPS with Docker. I'll explain how to use and configure Next.js features like image optimization, caching & ISR, streaming, middleware, server components, and more. Demo app is open source!

567,936 views • 1 year ago •via X (Twitter)

10 Comments

Lee Robinson's profile picture
Lee Robinson1 year ago

I ended up yapping about a lot of things: VPS vs. dedicated hardware, tradeoffs vs. managed services, other tools in the community you can use to host, and more! It's kind of long but hopefully helpful 😁

Lee Robinson's profile picture
Lee Robinson1 year ago

Also on YouTube if you prefer!

Alex Sidorenko's profile picture
Alex Sidorenko1 year ago

Tech Twitter: Vercel is a secret Cabal that doesn't want you to know that you can deploy Next.js to VPS for $5 Vercel: Here is how you can deploy Next.js to VPS for $4

mohib's profile picture
mohib1 year ago

this is awesome! though quite cumbersome you should check out really easy to ship nextjs apps on it

Lee Robinson's profile picture
Lee Robinson1 year ago

🤣 Well played

Puru Tuladhar's profile picture
Puru Tuladhar1 year ago

👇 Here’s a short video deploying on Hetzner. Start to finish in < 4 minutes (no talking).

Wildan M's profile picture
Wildan M1 year ago

What would be the most optimal NGINX config? For example, I would add .next as static router to _next/ so they got Etag cache done correctly.

Lee Robinson's profile picture
Lee Robinson1 year ago

I include this in the repo/video 😁

Jordan Hall's profile picture
Jordan Hall1 year ago

Wait shout of to @SST_dev and @coolifyio :O I thought Vercel didn't like SST

Lee Robinson's profile picture
Lee Robinson1 year ago

@SST_dev @coolifyio I'm appreciative of SST giving us feedback on how to improve self-hosting (some already fixed, still more to go). And I respect the hustle of @heyandras!

Related Videos