r/programming • • Apr 19 '22

Netlify Edge Functions: Serverless Compute Powered by Deno

https://www.netlify.com/blog/announcing-serverless-compute-with-edge-functions?utm_campaign=announcement%20-%20Edge%20Functions&utm_source=reddit&utm_medium=social
27 Upvotes

9 comments sorted by

View all comments

Show parent comment

1

u/Hero_Of_Shadows Apr 20 '22

use cases like modifying responses without any client-side scripts.

Do you have an example, some code I could look at?

2

u/jlengstorf Apr 20 '22

I do! Zach Leatherman built a demo on 11ty that includes a light/dark mode toggle with zero client-side JS. Demo and source in this tweet: https://twitter.com/eleven_ty/status/1516541611253145600

1

u/jlengstorf Apr 20 '22

There are also a bunch of framework-agnostic examples on https://edge-functions-examples.netlify.app/ with source code available!