| 1 | /** |
| 2 | * Asset-only entry for the Cloudflare `Website.StaticSite`. Every request |
| 3 | * falls through to the static assets; the worker itself only answers |
| 4 | * `/__worker` so the suite can tell "assets served" from "worker served". |
| 5 | */ |
| 6 | export default { |
| 7 | fetch: async (request: Request) => { |
| 8 | const url = new URL(request.url); |
| 9 | if (url.pathname === "/__worker") return Response.json({ ok: true }); |
| 10 | return new Response("not found", { status: 404 }); |
| 11 | }, |
| 12 | }; |