Can I somehow toggle if I want to run serverless or node runtime on Vercel?
Answered
Rhinelander posted this in #help-forum
RhinelanderOP
I know you can "toggle" between edge and serverless but can i toggle between serverless and node runtime?
Answered by Anay-208
Risky Is right, You should get a VPS, but here are some alternatives:
- [Railway.app](https://railway.app?referralCode=86eFU0): You can host nextjs in it, free $5 credits/month, http timeout is 5mins
If I were you, I'd initially use railway, and once my app scales, I'd just spend $5 on 2 GB Ram 2vcpu VPS.
- [Railway.app](https://railway.app?referralCode=86eFU0): You can host nextjs in it, free $5 credits/month, http timeout is 5mins
If I were you, I'd initially use railway, and once my app scales, I'd just spend $5 on 2 GB Ram 2vcpu VPS.
15 Replies
wdym, serverless is node runtime?
at least on vercel there is only pregenerated at build, normal serverless and edge serverless
RhinelanderOP
I mean I run in to error that my app times out. I am guessing that happens because of serverless function duration limit on vercel. I increase it to 60s (max for free tier) but it doesn't seem to work my api compleast but my app still timeouts. That why I am wondering could I "not use serverless function or smth" don't really know much about vercel specific stuff but thats why i am asking
You can get a VPS or an actual long lived machine to host your app then (serverless doesn't sound like what your wanting)
Impossible on Vercel. Serverless is not a runtime, serverless functions run on nodejs, and if you don’t upgrade the plan then you can’t have serverless functions/nodejs process running longer than 60s
Risky Is right, You should get a VPS, but here are some alternatives:
- [Railway.app](https://railway.app?referralCode=86eFU0): You can host nextjs in it, free $5 credits/month, http timeout is 5mins
If I were you, I'd initially use railway, and once my app scales, I'd just spend $5 on 2 GB Ram 2vcpu VPS.
- [Railway.app](https://railway.app?referralCode=86eFU0): You can host nextjs in it, free $5 credits/month, http timeout is 5mins
If I were you, I'd initially use railway, and once my app scales, I'd just spend $5 on 2 GB Ram 2vcpu VPS.
Answer
@riský Note both options are $5/m
And railway.app has a free trial. And railway.app, also converts to pay as you go after that
Hmm ig there is free $5 I initial credit, but hmm
I hear it's great value for money
If your issue is resolved, mark the message which resolved you issue in this channel as a solution
RhinelanderOP
Gonna try the solution and try it after. If it works i am gonna mark this one with solution as well as its same problemhttps://nextjs-forum.com/post/1242161024119865434
@Rhinelander so since your issue is resolved, mark the most useful message as a solution. You might face some problems setting up, which you can tell in a different thread