I’d found that whilst there’s a lot of good options out there for webservers, I was looking for something that is a single deployable binary for usage with containers or unikernels and solves some of the problems that you get with other setups like nginx.
It uses a single compiled binary, it’s going to have extremely low latency on account of caching all files in memory at runtime, and also the fun feature and really useful that’s good for SPAs (e.g. Vite) or things like Astro is that you can inject configuration variables into it at runtime and access them from within your frontend code, so you don’t have to rebuild any images for different environments as part of your CI.
Whilst I’m sure this problem has been solved time and time again, I could never get a solution to be quite right.
Also, serving things like Astro from S3 gets to be tricky because CloudFront doesn’t support index pages in subdirectories so the routing breaks. This fixes this.
Use it or don’t, I think it’s a cool little project and it’s been a while since I worked on and released something 🙂
Comments URL: https://news.ycombinator.com/item?id=39815976
Points: 37
# Comments: 4