r/astrojs • u/Primetimemongrel • 20d ago
Hosting?
Where are you guys hosting? I’m currently using vercel but worried my free plan is going to get eaten up soon.
Looking at best place to host that github can push to
6
u/EpochVanquisher 20d ago
Self-hosting on a Linux VPS (running Nginx) with cloud DNS and my own domain. Let’s Encrypt for TLS certs. I’ve moved all my sites to this setup.
Easy enough to put a CDN in front if it becomes necessary.
1
u/sweatdrop-lol 13d ago
Considered this, but the lack of CDN, needed maintenance and hosting complexity is somewhat of an overkill — just to move the dependency rush away from CF to the VPS provider
1
u/EpochVanquisher 13d ago
“Needed maintenance” is mostly just to install updates on a regular basis, which is trivial. I only have to touch the config once every two or three years. With AI assistance, this maintenance has gotten so easy, I don’t even really think about it any more.
Trivial to set up a CDN if you want. CDNs are not hard to set up, or time-consuming.
4
u/Cattyto 20d ago
You can look into Cloudflare workers because I think cloudflare pages will soon not be a viable option.
1
u/crazybabyeater 20d ago
I use Pages currently. What's changing?
6
u/Quariongg 20d ago
I don't think pages will be removed, but workers do the same and more.
Basically it's not recommended anymore to use pages, and you should just use workers.
Think of pages like a Swiss knife that only has the short knife. Workers is the whole Swiss knife. You can use that like the former, but it supports so many more uses.
Idk if it's gonna be discarded entirely, i doubt that, but basically there is not really a point to use pages besides "it's enough for my use".
Like picking a slower car just because you didn't wanna go fast in the first place.
2
u/GammaRxBurst 20d ago
I used page too but it seems that cloudflare try to get people into worker more. Basically I used worker to tie in my GitHub to cloudflare and having cloudflare worker build my astro project. It is certainly nice and works well and still free but definitely a bit more complicated then dropping in a zip file and done.
Cloudflare claimed that the change is to facilitate your site to grow and in the future if you decide that you need a worker it is already there no need to set it up. I think they just want to sell their workers more and let everyone have an introduction and a taste.
1
3
3
3
3
u/grinning_surf_03 20d ago
static Astro sites are nearly free on Cloudflare Pages or Bunny.net and handle significantly more traffic than Vercel's limits. Check if your usage spikes come from preview builds rather than production traffic to understand the real bottleneck
3
u/ramdettmer 19d ago
We're slowly migrating to Cloudflare. Vercel is piling up since we host various enterprise clients that gets massive traffic.
2
u/GoldenCoastDigital 20d ago edited 20d ago
Cloudflare for the win. I moved all my sites there.
Requests to static assets are free and unlimited, even on the free plan.
Just connect your GitHub repo and it builds and deploys on every push, with preview URLs for branches. Same workflow you're used to on Vercel.
And the $5 Workers plan is worth it once you add dynamic stuff like form handlers or server rendering across multiple sites. It raises the request and CPU limits for that part too and static files stay free either way.
1
u/Quariongg 20d ago
Hosting astro? Straight on CF. Easily free forever if fully static, and 5$/m plan is incredibly generous
-1
u/Mekex99 20d ago
Imagine its a plan from CF and suddenly in 5 years bam $5 for each site. :c
3
u/Quariongg 20d ago
You'd have to define what a "site" is to make this argument.
Is it a domain? Not really. A single worker? not even that. everything that's deployed under a domain name? Nonsense.
That's not how CF works. It's more like a server. It hosts stuff. And you pay based on consuption. Free plan is nice, 5$ plan is great.
You don't pay a server based on how many "things" or sites you host on it, you pay by how much compute power you need. With CF you pay based on what you use, but it's cheap and super performant because their infrastructure is insane.
1
u/Mekex99 20d ago
oh I was kinda joking, not saying this will happen in the future (I hope because I love CF) and I meant more in a dev/ops mind, exactly refering to a static website which was the main topic
1
u/Quariongg 20d ago
I see, nonetheless a single worker can include several static websites, there is not a simple way to determine what that means XD
1
u/Quariongg 20d ago
I just realized you meant plan as [diaboical] plan. I interpreted it as [billing] plan and the phrase was infact a bit awkward lmao
1
u/Satankid92 20d ago
Cloudflare is the most convenient for Astro even more now that Claude owns it
2
1
u/clicksnd 20d ago
I use cf workers for straight static, then depending on the client or CMS, either railway or a vps. I have a couple clients on render
1
u/88Smiley 20d ago
Hostinger. Is cheap and very powerful, you can push the website from GitHub, from Codex, etc. I'm using it for a few years now and I'm very pleased. Check them out, there are also discount codes so you can get very good deals for your first years.
1
1
u/TrapperFlint 14d ago
Self hosting on a vps. Nginx for proxy to multiple sites and certbot for ssl.
1
21
u/Any_Taste_6151 20d ago
Cloudflare workers and supabase.