ELI5: Server Actions vs Nodejs Hosting
Unanswered
Masai Lion posted this in #help-forum
Masai LionOP
Hey,
After so many articles and docs, trying to understand the two, I have become even more confused.
I am trying to decide which one to use in my project, but could someone explain to me the difference between the two. I know node is just a separate backend server, meanwhile server actions are a backend bundled with nextjs frontend in one project.
I am currently debating on three possible solutions:
1. Next frontend and node express backend (hosting on vps)
2. Next fullstack (hosting vercel)
3. Next fullstack (hosting on vps)
My project is more of a hobby project (currently dont have a way to earn much money from it), but would maybe earn a dollar or two from ads, which forces me to get vercel pro (20usd/m). That is a bit too expensive, and is why I want to host it on a vps for cheaper.
Is it possible to host next with server actions on a vps?
Thanks
After so many articles and docs, trying to understand the two, I have become even more confused.
I am trying to decide which one to use in my project, but could someone explain to me the difference between the two. I know node is just a separate backend server, meanwhile server actions are a backend bundled with nextjs frontend in one project.
I am currently debating on three possible solutions:
1. Next frontend and node express backend (hosting on vps)
2. Next fullstack (hosting vercel)
3. Next fullstack (hosting on vps)
My project is more of a hobby project (currently dont have a way to earn much money from it), but would maybe earn a dollar or two from ads, which forces me to get vercel pro (20usd/m). That is a bit too expensive, and is why I want to host it on a vps for cheaper.
Is it possible to host next with server actions on a vps?
Thanks
20 Replies
Yes server actions work on a vps
I would avoid 1 if you can
@linesofcode I would avoid 1 if you can
Masai LionOP
why
2 is the best
Because the split is pointless
Unless you’ve already built a node js backend
Nextjs is full stack, trying to split it into another node backend is overkill unless there is a really good reason to
2 is the best
Masai LionOP
2 is convinent and has analytics and alot more compared to 3.
but i would have to pay 20usd/m/dev , which is a bit expensive, if my app would make 1usd/few months
but i would have to pay 20usd/m/dev , which is a bit expensive, if my app would make 1usd/few months
3 is the cheapest
Check out fly.io or sst (for deploying to aws)
@linesofcode Check out fly.io or sst (for deploying to aws)
Masai LionOP
i had fly.io free tier while my app was still split , to host the express server.
ill check both out again thanks
i will not yet mark as answer. in case i have a few more questions
You can also check out aws amplify
but you'll need to override the default image to use
amplify:al2023but I personally wouldnt
and stick with sst