index.ts 192 B

12345
  1. import { handleRequest } from './handler'
  2. addEventListener('fetch', (event) => {
  3. event.respondWith(handleRequest(event.request).catch((err) => new Response(err.stack, { status: 500 })))
  4. })