Mirror of static site repo git.pfy.ch/pfych/static
Something went wrong. Try again.
123456789101112131415161718import { 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);