Getting started with Netlify Edge Functions

Опубликовано: 24 Февраль 2025
на канале: Netlify
9,853
131

Hello and welcome to getting started with Netlify edge functions.

In this tutorial we’re going to:

write a basic Hello World Edge Function
set up a new project to serve static HTML template files
and write an Edge Function to intercept a static HTML template, and update it using geolocation data at the edge
and then we’ll deploy the project to Netlify using the Netlify CLI

View the code for this tutorial on GitHub: https://github.com/whitep4nth3r/getti...

Read the blog post for a detailed walkthrough: https://ntl.fyi/personalize-html-with...

Happy coding! 👩🏻‍💻

Have questions? Connect with Salma on Twitter:   / whitep4nth3r  

0:00 Intro
0:28 Prerequisites
1:19 Project setup and index.html
2:14 Writing a Hello, World Edge Function
3:58 Serving static HTML template files from /public
5:09 Transforming an HTTP request at the edge to add geolocation data
6:55 Adding git version control
7:19 Add your project to GitHub using the GitHub CLI
7:36 Deploy to Netlify using the Netlify CLI
8:23 Explore Edge Function logs
8:45 Explore more examples

---
https://www.netlify.com/
https://jamstack.org/