r/nextjs • u/deseperatenerd • 25d ago
So
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
12
u/Ratze_ 25d ago
Get a VPS, install Dokploy, deploy your nextjs app with dokploy on your vps, save money.
-13
u/deseperatenerd 25d 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 25d ago
it's either learning how to deploy into other services or paying for Vercel
-6
u/deseperatenerd 25d 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 25d ago
You should pay
2
u/deseperatenerd 25d ago edited 25d ago
10K DOLLAR BILL? I don't think so
3
u/riskrunner_zero 25d ago
I'm confused, this is your first app and your getting a 10k bill?
-7
u/deseperatenerd 25d 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 25d 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 25d 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 25d 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 25d ago
Leave vercel
The longer you delay, higher the waste and cost of transition
1
u/Seanw265 23d 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 23d 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 23d 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 25d ago edited 25d 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 25d 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 25d 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 25d ago edited 25d 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 25d ago
I did exactly this with my project that was barely getting any real traffic, but vercel costs kept rising above the $20 credit
1
1
u/codedusting 25d 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
1
1
1
1
u/Rough_Philosopher877 13d ago
I self host all my nextjs apps... it's not that hard to setup a VPS..
you may try this: https://github.com/tysonchamp/Lite-cPanel
you may use docker or pm2 both will work with nextjs app
1
1
46
u/winky9827 25d ago
Building a docker image of a next.js app is trivial and the docker app can be hosted almost anywhere.