| 1 | /** |
| 2 | * Constants shared between the AWS deploy target (`./aws.ts`, loaded in the |
| 3 | * Node build/deploy process) and the AWS adapter (`./aws-adapter.ts`, bundled |
| 4 | * into the Lambda server bundle by waku's vite pipeline). Kept in a |
| 5 | * dependency-free module: the target must be importable WITHOUT dragging in |
| 6 | * `waku/adapter-builders` (which only loads inside waku's vite context), and |
| 7 | * the adapter must stay free of Effect imports. |
| 8 | */ |
| 9 | |
| 10 | /** |
| 11 | * The global the generated serve entry reads: a |
| 12 | * `(fetch, { streaming }) => lambdaHandler` wrapper published when the |
| 13 | * server-entry module evaluates (importing `dist/server/index.js` runs the |
| 14 | * adapter setup). Namespaced away from upstream waku's |
| 15 | * `__WAKU_AWS_LAMBDA_HANDLE__` so both adapters could coexist. |
| 16 | */ |
| 17 | export const AWS_LAMBDA_HANDLE_GLOBAL = "__ALCHEMY_WAKU_AWS_LAMBDA_HANDLE__"; |