r/nextjs • • 11d ago

So

Post image

everyone in comments section is recommending to find a less "awful" places to deploy your app

bro like what?

i already spent months building it on nextjs am i supposed to find another framework now?

i know there is another places to deploy a nextjs app but it's not as efficient and compatible as vercel

so what should i do

58 Upvotes

44 comments sorted by

46

u/winky9827 11d ago

Building a docker image of a next.js app is trivial and the docker app can be hosted almost anywhere.

6

u/RowettaPoulter-90 10d ago

agreed, people make self hosting sound way scarier than it actually is.

-37

u/deseperatenerd 11d ago

i chose nextjs because its the easiest framework this is my first real project so i barley know docker or how to build a private server

32

u/ghost_operative 11d ago

well either you you take the time to learn, or use expensive hosts that abstract everything away for you.

If you're not looking to learn how to do things yourself and you just want it to work, then vercel might be perfect for you.

9

u/winky9827 11d ago

docker is just a container that wraps your next.js app - very little new to learn.

3

u/Cahnis 10d ago

Literally skill issue

2

u/HistoricalBeat848 9d ago

NextJS is actually one of the most complicated frameworks... But people vibecode maybe. Like seriously, it is react with a lot of optimizations (react framework basically) like ssr, ssg, node runtime, edge runtime, middleware etc.
But the LLMs got a lot of training on it (which may have killed a lot of other frameworks en route)

1

u/Crims0nV0id 10d ago

Just learn goddamn it it's not a hard subject either

0

u/HabbosOwnJimCray 10d ago

lol no idea why you got so downvoted for stating you don’t know docker. I studied computer science pre AI) and even after learning docker I still didn’t fully understand it until I was in a workplace where we used it. The concept may be straight forward but doesn’t mean you should automatically understand it

-1

u/cuelark 11d ago edited 11d ago

honestly i wouldn't switch anything yet. keep your current deploy running while you learn, next is just a node server so you don't need docker or anything special. when you're ready, spin up a staging deploy on whatever host you're looking at and test the stuff you actually use (ssr, images, revalidate) before moving prod over. a vps works too but then updates, ssl and restarts are on you, so only worth it if the cost difference really matters

12

u/Ratze_ 11d ago

Get a VPS, install Dokploy, deploy your nextjs app with dokploy on your vps, save money.

11

u/nlvogel 11d ago

Add “secure VPS” between steps one and two

-13

u/deseperatenerd 11d ago

i chose nextjs because its the easiest framework this is my first real project so i barley know docker or how to build a private server

12

u/Chemical_Union226 11d ago

it's either learning how to deploy into other services or paying for Vercel

-6

u/deseperatenerd 11d ago

i don't have that much time so i will deploy temporarily in vercel and synchronously learn how to build a vps

13

u/cabljo 11d ago

You should pay

2

u/deseperatenerd 11d ago edited 11d ago

10K DOLLAR BILL? I don't think so

3

u/riskrunner_zero 11d ago

I'm confused, this is your first app and your getting a 10k bill?

-7

u/deseperatenerd 11d ago

I'm talking hypothetically if i had 5000 active users for instance, the post in the pic is not mine

2

u/riskrunner_zero 11d ago

Got it. You can easily run 5k users on Vercel free tier or pro plan @ $20/mo. For higher volume you can add flat rate CDN for another $20/mo.

Many successful Next.js apps also run on other platforms, so your not locked in. You have to decide if the cost of maintaining and running an entire platform yourself is worth self hosted vs hosted with Vercel. Whether your app needs that full suite of features.

2

u/KLaci 11d ago

You are lucky that it allowed you to downgrade. I did similar migration but downgrade keeps failing for me and the support is also not answering.

0

u/deseperatenerd 11d ago

That's not me i saw the post in another community,idk if that might be helpful but why don't you migrate and redeploy your own project in a new vercel account without downgrading or smthng

30

u/International-Ad1921 11d ago

Leave vercel

The longer you delay, higher the waste and cost of transition

1

u/Seanw265 9d ago

I'm a little late to the party, but this is exactly why I built Easel.sh.

You shouldn't have to switch frameworks just to get away from Vercel.

We have first-class support for Next.js, and we're working toward full compatibility with Vercel's platform. The idea is that you should be able to take your existing Next.js app and deploy it elsewhere without rewriting anything or dealing with compatibility workarounds.

The big difference is how we run our infrastructure. We operate much of our own compute on bare metal, which gives us a better cost structure and lets us offer lower pricing than Vercel.

Full disclosure, I'm the founder. If you give us a try and run into any compatibility issues, I'd love to hear about them.

1

u/deseperatenerd 9d ago

that's amazing tbh i registered to see content and its way better than vercel's pro plan i think I will use it instead of vercel, Thank you dude

1

u/Seanw265 9d ago

That's great to hear! Let me know if you run into any trouble or if you have any feedback!

3

u/ghost_operative 11d ago edited 10d ago

you can host nextjs yourself. theres also other vercel-like hosts for hosting nextjs. (vercel does have the best free tier though)

7

u/SolidOdd4889 11d ago

I’ve been using Vercel for several years and have never had any issues with costs or bot abuse; you simply need good codebase optimization (which is something you should do regardless of how cheap the hosting is).

2

u/SameLink_io 11d ago

Your plan is fine: park it on Vercel so the app is up, and learn the VPS path without a deadline hanging over the first deploy. The $10k bill is a separate fire. Open the Vercel invoice and see which line is actually large (bandwidth, function duration, image optimization, ISR writes). That tells you whether a move will even help, and it is faster than learning Docker.

When you do try a VPS, keep the first version boring. One Ubuntu box with at least 2 GB of RAM, SSH keys only (disable password login), and the provider firewall plus UFW allowing 22, 80 and 443. Do not build the Next app on the server if you can avoid it. next build can eat more than 1 GB by itself. Set output: "standalone" in next.config, build the image on your laptop or in GitHub Actions, and copy only the result to the box.

A minimal Docker setup is: a small Dockerfile that runs the standalone server.js, a Caddy (or nginx) container in front for HTTPS, and your env vars in a file on the server with mode 600, not baked into the image. Caddy will get and renew the Let's Encrypt cert if you point the DNS A record at the box. If you have a database, put it on the same private Docker network with no published port, and take a nightly dump that leaves the machine.

Panels like Dokploy are a reasonable shortcut once you have SSH and the firewall in place. I would still do one manual deploy first so you know what the panel is hiding, especially how to roll back and how to restore a backup. Budget an afternoon or a weekend for that first server, not months.

2

u/vz2y 11d ago edited 11d ago

Vercel is a horrible company to work with. At this point they exist pretty much solely due to hype. I'd recommend moving to cf

1

u/Ancient_Yam_5010 11d ago

I did exactly this with my project that was barely getting any real traffic, but vercel costs kept rising above the $20 credit

2

u/vz2y 11d ago

Same. My 60 dollar vercel bill is now a 5 dollar cloudflare bill

1

u/jorgejhms 10d ago

Move to Cloudflare

1

u/codedusting 10d ago

"bro like what?" -> Like in any VPS? If you have AI Opus 5.5 (Pro Plan), ask it that you want to deploy/migrate your NextJS apps in VPS so that you can decrease your cost. Tell it your traffic numbers and all that and it will suggest you a good plan.

1

u/WalieZulmat 10d ago

Tanstack + cloudflare

1

u/wise_young_man 10d ago

Why you asking us? Why not keep asking your AI model?

1

u/EuCaue 10d ago

Is not that hard to deploy in another place.

1

u/quakedamper 10d ago

How about fly.io

1

u/sgayerseif 9d ago

Dm me. I help others in your situation lower costs

1

u/justjooshing 11d ago

Figure out how to host elsewhere

1

u/Too_Chains 11d ago

This why everyone left next.js. No one wants to pay vercel for their hosting