Description
netlify-edge-functions is an agent skill that helps a coding assistant write edge middleware for Netlify. Edge Functions run on a globally distributed Deno runtime, so the code runs at the network location closest to each user. The skill covers the middleware pattern built around context.next(), reading geolocation, changing requests and responses, and deciding when edge compute is the right choice over a standard serverless function. Its argument is that edge functions run in Deno with tight CPU budgets at points of presence around the world, so geolocation redirects and authentication checks can happen before a request reaches your origin server, while a serverless function usually runs in a single region. A coding assistant with this skill can write code that redirects users to a localized page based on the country code in context.geo, adds authentication checks before requests reach the origin, runs A/B tests by rewriting URLs at the edge without a flicker in the browser, and injects custom response headers. Install it with the command shown on this page.…
Highlights
- Middleware with context.next()
- Geolocation through context.geo
- Request and response changes at the edge
- Country-based redirects
- A/B tests by URL rewrite
Ratings & Reviews
No ratings yet
Be the first to rate netlify/netlify-edge-functions.
People also visit
netlify/netlify-edge-functions FAQ
What does this skill do?
It guides a coding assistant to write Netlify Edge Functions that run middleware close to users.
How do I install it?
Run npx skills add https://github.com/netlify/context-and-tools --skill netlify-edge-functions, or paste the skill link into your coding assistant and ask it to install the skill.
When should I use edge functions?
The page says to use them for work such as geolocation redirects and auth checks that should happen before the request reaches your origin.
What runtime do they use?
A globally distributed Deno runtime.
What are the best netlify/netlify-edge-functions alternatives?
Popular alternatives to netlify/netlify-edge-functions include netlify-caching, netlify-edge-functions and netlify/netlify-functions. See all netlify/netlify-edge-functions alternatives




