UNPKG

netlify-cli

Version:

Netlify command line tool

10 lines (7 loc) 316 B
import type { Context } from 'https://edge.netlify.com' export default async (request: Request, context: Context) => { console.log(`There was a request from ${context.geo.city} to ${request.url}`) return new Response('The request to this URL was logged', { headers: { 'content-type': 'text/html' }, }) }