Home / Companies / LogRocket / Blog / Post Details
Content Deep Dive

Going serverless with Eleventy

Blog post from LogRocket

Post Details
Company
Date Published
Author
David Atanda
Word Count
1,370
Language
-
Hacker News Points
-
Summary

Eleventy, a static site generator using various templating languages, efficiently builds high-performance static HTML websites but struggles with dynamic content. To address this, the Eleventy Serverless plugin allows for handling dynamic data using serverless functions, specifically leveraging Netlify Functions or On-demand Builders to generate dynamic pages at the time of HTTP requests. The tutorial demonstrates configuring Eleventy Serverless and using it to integrate asynchronous logic, such as displaying filtered data from the Rick and Morty API on a website. The guide elaborates on setting up Eleventy, configuring the serverless plugin, creating templates, and employing caching to optimize performance. This approach enables developers to transition beyond static sites to include dynamic content while maintaining efficiency and performance benefits.