HACKER Q&A
📣 bmacho

Host a static website with WASM for free?


I want to host a static website with a WASM program for free. Currently it is running on Heroku, node.js doing the header shenanigans, but Heroku is shutting down its free tier.

A straightforward solution seems to migrate to fly.io to do the same (although I am not exactly sure about its free tier).

My question is, if there are any better services, more reliable, faster, without invoking node.js every time? A static website provider that allows to configure the http headers, or they allow WASM default. (e.g. github pages can't run WASM)


  👤 vhodges Accepted Answer ✓
Fly's free tier is smallish (3x256MB servers) and a bit of storage (3GB if memory serves) certainly enough for nginx for the headers.

But does https://docs.netlify.com/routing/headers/ do what you need?


👤 viraptor
Do you want actually free, or "i don't want to think about it" free? S3 + cloudfront lets you set custom headers and you can pay single cents for it unless you're very popular.