I’ve been having some fun recently playing around with Compute apps that enhance websites built with Eleventy at the edge. When you build a site with 11ty, the output is essentially a bunch of HTML files and some CSS, so it’s already super fast and really well suited to experimenting with Compute functionality.
You can expose a JSON feed of posts with the 11ty RSS plugin, so in this tutorial I made a small Compute app in JavaScript to turn the post data into an HTML page at the edge – later in the series I’ll be building on this to incorporate more edge data into the mix to personalize the user experience:
We also have a new tutorial on setting up a Fastly KV Store in a Compute app, with an example logging hits to an 11ty website:
In both of these we’re using a variant of the 11ty base blog published to GitHub Pages. You can try out the starter kits:
And we have a Fiddle showing how to build the feed page:
Stay tuned for more adventures with 11ty at the edge!