(request, env, ctx)
| 18 | |
| 19 | export default { |
| 20 | async fetch(request, env, ctx) { |
| 21 | const url = new URL(request.url); |
| 22 | const markdownResponse = await getDocsMarkdownResponse(url.pathname); |
| 23 | |
| 24 | if (markdownResponse) return markdownResponse; |
| 25 | |
| 26 | return requestHandler(request, { |
| 27 | cloudflare: { env, ctx }, |
| 28 | }); |
| 29 | }, |
| 30 | } satisfies ExportedHandler<Env>; |
no test coverage detected