r/astrojs • • 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

16 Upvotes

44 comments sorted by

21

u/Any_Taste_6151 20d ago

Cloudflare workers and supabase.

5

u/montropy 20d ago

Have you tried D1 or R2?

3

u/Quariongg 20d ago

works perfectly if you don't have insane scaling needs, for which D1 might become a bottleneck

2

u/AriadneOpsSocial 18d ago

I'm using D1 for a website that shows locations on a map that you can filter by. It runs very fast.

1

u/Any_Taste_6151 20d ago

No I have not, any thoughts on it?

1

u/EarnieEarns 20d ago

This is what I use, it’s amazing.

1

u/ChabhaNatural-82 19d ago

solid stack, the generous limits make it a no brainer

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.

6

u/humanjk 20d ago

Can’t beat Cloudflare

1

u/akisbis 20d ago

This 1000%

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

u/Professional-Tap-229 20d ago

Why?

4

u/tumes 20d ago

It has been deprecated for more than a year and every bit of documentation steers you away from pages, I think LLM knowledge being out of date is single handedly forcing them to maintain it as a product because they clearly do not want to have that unnecessary distinction any more.

3

u/Directorylistings 20d ago

Bunny.net for just static hosting

3

u/PackLeaderTV 20d ago

Vps with Coolify on Hertzner infrastructure

3

u/ramonrey209 20d ago

I’ve transferred a lot of my sites to Astro and have been using cloudflare

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

u/kidshibuya 20d ago

what?

3

u/Satankid92 19d ago

Tried to say cloudflare owns it, keyboard autocompletion things

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

u/kelkes 19d ago

bunny.net

1

u/real342 19d ago

Cloudflare for some projects and VPS+Coolify for others.

1

u/TrapperFlint 14d ago

Self hosting on a vps. Nginx for proxy to multiple sites and certbot for ssl.

1

u/[deleted] 20d ago

[removed] — view removed comment

1

u/Primetimemongrel 20d ago

Right now now my deploy server storage on vercel :/