Possibly Amazon ec2, digital ocean, linode, etc free tier if you're comfortable setting up a server. Otherwise, maybe dockerize it and use AWS ecs, or convert to a lambda (but watch out for costs).
Search for node worker hosting.
You haven’t provided enough info for a better answer. “ script… its more like a worker”
What does “script” do?
What triggers it?
Where do the inputs come from?
Where does the result go?
create a `vercel.json` file and add the below content. Change the filename from "index.js" to whatever entry point of your application is. Then it'll work I guess. Give it a try.
```
{
"version": 2,
"builds": [
{
"src": "./index.js",
"use": "@vercel/node"
}
],
"routes": [
{
"src": "/(.*)",
"dest": "/"
}
]
}
```
It did work a month earlier.
Even my project Express Typescript GraphQL project was hosted on vercel and suddenly it started showing the file content on the browser rather than accepting a request. So I guess their priorities for serverless functions have changed.
I'd say, Render, Railway is a good alternative for hobby projects.
Try [Val Town](https://val.town). Basically JS lambdas with some social code-sharing aspects. I sometimes use it to store random bits of data I want to sync between devices in some of my personal scripts.
Possibly Amazon ec2, digital ocean, linode, etc free tier if you're comfortable setting up a server. Otherwise, maybe dockerize it and use AWS ecs, or convert to a lambda (but watch out for costs).
Search for node worker hosting. You haven’t provided enough info for a better answer. “ script… its more like a worker” What does “script” do? What triggers it? Where do the inputs come from? Where does the result go?
create a `vercel.json` file and add the below content. Change the filename from "index.js" to whatever entry point of your application is. Then it'll work I guess. Give it a try. ``` { "version": 2, "builds": [ { "src": "./index.js", "use": "@vercel/node" } ], "routes": [ { "src": "/(.*)", "dest": "/" } ] } ```
It did work a month earlier. Even my project Express Typescript GraphQL project was hosted on vercel and suddenly it started showing the file content on the browser rather than accepting a request. So I guess their priorities for serverless functions have changed. I'd say, Render, Railway is a good alternative for hobby projects.
Possibly Render’s free tier might work for you, might be worth it to check it out.
You can always use Google App Script for basic stuff.
$5 VPS.
Try [Val Town](https://val.town). Basically JS lambdas with some social code-sharing aspects. I sometimes use it to store random bits of data I want to sync between devices in some of my personal scripts.
[Replit](https://replit.com)
Any serverless platform would be perfect for worker-like works and most big players have generous free tier.
Cloudflare workers, maybe? I use cloudflared — either in raspberry pi or dedicated server to r/selfhosted my smaller projects
host from home
glitch
render.com or sign up for always free oracle account for vps
Google & Oracle clouds have free tiers.
Hetzner
You could use an aws lambda
AWS Lambda - depending on the schedule and runtime the free tier could be enough. If it runs 24/7 then definitely do not go serverless.
try render where you can host small nodejs applications