| 1 | // Minimal worker entry. The cloudflare-vite-plugin wraps this in a |
| 2 | // virtual module and emits it as the SSR bundle. We delegate to the |
| 3 | // asset binding (`ASSETS.fetch`) so the actual fixture content (the |
| 4 | // built `index.html`) is what's served — that's what the test is |
| 5 | // checking on subsequent deploys. |
| 6 | type Env = { ASSETS: { fetch: (req: Request) => Promise<Response> } }; |
| 7 | |
| 8 | export default { |
| 9 | fetch(request: Request, env: Env): Promise<Response> { |
| 10 | return env.ASSETS.fetch(request); |
| 11 | }, |
| 12 | }; |