handler.ts
This file
Path
src/adapter/netlify/handler.ts
13 lines 路 417 bytes 路 TypeScript
Last changed by
feat(adapters): add the seven adapters as workspace packages (#5463)Yusuke Wadabefore adoptionb877827
History of this fileTake it
1234567891011121314/* eslint-disable @typescript-eslint/no-explicit-any */import type { Hono } from '../../hono'
/** * @deprecated `hono/netlify` will be removed in v5. Install `@hono/netlify` and import from there instead. */export const handle = ( app: Hono<any, any>): ((req: Request, context: any) => Response | Promise<Response>) => { return (req: Request, context: any) => { return app.fetch(req, { context }) }}