Next.js Discord

Discord Forum

The best way to host Next.Js?

Answered
Russian Blue posted this in #help-forum
Open in Discord
Russian BlueOP
I like Vercel - but the costs are too much for us, in one of my teams work in, we have a very low traffic website. However, as we are working with a github workspace we must pay the vercel pro subscription and then additionally if other members of the workspace wish to commit they must be a member of the workspace meaning we have to pay an additional $20 per seat.

Meaning if we have a website with practically no traffic, 4 members working on it we're paying $80 monthly.
Answered by linesofcode
Fly.io if you just want to save money overall. Anything below 5 dollar usage a month is waived.
View full answer

14 Replies

Fly.io if you just want to save money overall. Anything below 5 dollar usage a month is waived.
Answer
Deploy should more or less be seamless
Or
Use the vercel cli to deploy via your GitHub actions
And and deploy with a vercel cli and api key. You can generate one
This way only one user needs to be in vercel
There’s also a GitHub action available I believe
Which encapsulates some of this
American black bear
Self-host it via Docker using a VPS/Cloud provider like Hetzner. Add GitHub actions to mimic Vercel auto-deployment and you saved $70/mo for 1 day of work.
If you don't want to mess with docker I've heard that Coolify is great, might be worth taking a look at it.
I personally went with option no. 1 and for $17/mo serve ~15 clients (15.000 daily users) with VPS hosting my own: Next.js app, PostgreSQL database, Postfix server, MinIO storage, Caddy and a few other things. Also loading times have been reduced significantly since everything is on one server and there is no round trips: frontend > server > db > server > frontend.
Russian BlueOP
Has anybody had good experieince with AWS Amplify?