Loading video...
Video Failed to Load
📹 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

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 😁

Also on YouTube if you prefer!

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

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

🤣 Well played

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

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.

I include this in the repo/video 😁

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

@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
How to use Next.js metadata if the page is a client component
Alex Sidorenko
91,579 views • 1 year ago


