Hacker News new | ask | show | jobs
by MatthewRayfield 3589 days ago
Unfortunately Lambda falls apart a bit when you want to do any on-request HTML generation.

You're also kind of stuck with hash URLs if you want to link to anything in your app.

If you've got a truly single page app hitting an API, or you can generate pages and upload them to S3, you're golden.

But there isn't currently a way of having Lambda serve up dynamically generated HTML pages without some funny business.

I'm sure this will change in the future, but it's stopped me from using it for now.

1 comments

API gateway takes a bit to set up, and there are silly limits on error responses etc still, but returning a html page is very easy. Check out the web HTML example project for Claudia https://github.com/claudiajs/example-projects/blob/master/we...