| 1 | /** |
| 2 | * Async (non-Effect) producer fixture for |
| 3 | * `StreamingTailConsumers.local.test.ts`. |
| 4 | * |
| 5 | * Logs a stable marker on every request so each invocation produces a |
| 6 | * streaming tail session (onset → log → outcome) for the consumers attached |
| 7 | * via `streamingTailConsumers` — the local test polls the consumer's |
| 8 | * `/events` route for a recorded session carrying this marker. |
| 9 | * |
| 10 | * The marker string is duplicated in `StreamingTailConsumers.local.test.ts`: |
| 11 | * the default export must be this module's ONLY export — extra named exports |
| 12 | * surface as workerd top-level exports and fail startup validation |
| 13 | * ("Incorrect type for map entry ...: not of type 'function or |
| 14 | * ExportedHandler'"). |
| 15 | */ |
| 16 | |
| 17 | export default { |
| 18 | async fetch(): Promise<Response> { |
| 19 | console.log("alchemy-local-streaming-tail-marker"); |
| 20 | return new Response("streaming-producer-ok"); |
| 21 | }, |
| 22 | }; |