@netlify/edge-functions
TypeScript types for Netlify Edge Functions.
npm install @netlify/edge-functions
import type { Config, Context } from '@netlify/edge-functions'
export default async (req: Request, context: Context) => {
return new Response(`Hello from ${context.geo.city}`)
}
export const config: Config = { path: '/hello' }