npm.io
4.0.4 • Published 2 weeks ago

@netlify/edge-functions

Licence
MIT
Version
4.0.4
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
26

@netlify/edge-functions

@netlify/edge-functions version license node downloads/mo

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' }

Keywords