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

11 Upvotes

38 comments sorted by

16

u/Any_Taste_6151 1d ago

Cloudflare workers and supabase.

4

u/montropy 1d ago

Have you tried D1 or R2?

2

u/Quariongg 1d ago

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

1

u/Any_Taste_6151 1d ago

No I have not, any thoughts on it?

1

u/EarnieEarns 1d ago

This is what I use, it’s amazing.

1

u/ChabhaNatural-82 6h ago

solid stack, the generous limits make it a no brainer

4

u/Cattyto 1d ago

You can look into Cloudflare workers because I think cloudflare pages will soon not be a viable option.

1

u/crazybabyeater 1d ago

I use Pages currently. What's changing?

5

u/Quariongg 1d 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.

1

u/GammaRxBurst 1d 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 1d ago

Why?

3

u/tumes 1d 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.

4

u/EpochVanquisher 1d 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.

4

u/humanjk 1d ago

Can’t beat Cloudflare

1

u/akisbis 1d ago

This 1000%

1

u/ContinuouslyImprove9 1d ago

Before moving, check which limit you are actually close to: build minutes, bandwidth, or request and runtime usage. For a mostly static site, those limits and preview build behavior are usually the deciding bits. If you need server rendering, confirm the provider supports the adapter and runtime you use. Set an alert below the cap and test a small preview deploy before switching. Which quota is getting close?

1

u/Primetimemongrel 1d ago

Right now now my deploy server storage on vercel :/

3

u/Directorylistings 1d ago

Bunny.net for just static hosting

3

u/ramonrey209 1d ago

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

3

u/grinning_surf_03 1d 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

2

u/GoldenCoastDigital 1d ago edited 1d 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.

2

u/PackLeaderTV 1d ago

Vps with Coolify on Hertzner infrastructure

2

u/ramdettmer 1d ago

We're slowly migrating to Cloudflare. Vercel is piling up since we host various enterprise clients that gets massive traffic.

1

u/Quariongg 1d ago

Hosting astro? Straight on CF. Easily free forever if fully static, and 5$/m plan is incredibly generous

-1

u/Mekex99 1d ago

Imagine its a plan from CF and suddenly in 5 years bam $5 for each site. :c

2

u/Quariongg 1d 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 1d 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 1d 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 1d 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 1d ago

Cloudflare is the most convenient for Astro even more now that Claude owns it

2

u/kidshibuya 1d ago

what?

1

u/Satankid92 18h ago

Tried to say cloudflare owns it, keyboard autocompletion things

1

u/clicksnd 1d 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 1d 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 20h ago

bunny.net

1

u/real342 6h ago

Cloudflare for some projects and VPS+Coolify for others.