import { Hono } from 'hono'; import { streamHandle } from 'hono/aws-lambda'; import { router } from './router'; import { cors } from 'hono/cors' const app = new Hono(); app.use(cors({ origin: '*', allowHeaders: ["Content-Type", "Authorization"], allowMethods: ["POST", "GET", "OPTIONS"], exposeHeaders: ["Content-Length"], })) app.route('/', router); export const handler = streamHandle(app);