Cell - Express Adapter Component
The backend entry of an HTTP application: it starts the application and serves it with node:http. Despite the name it no longer depends on express; the handler is HttpServerUtil.createHandler() of @celljs/web.
bash
npm install @celljs/express-adapterEvery HTTP backend needs it (the cell init templates include it). The node, cloudflare, fc, scf, lambda and vercel presets all run this entry; the cli preset does not need it.
| Key | Default | |
|---|---|---|
server.host | 127.0.0.1 | Use 0.0.0.0 in containers: CELL_SERVER__HOST=0.0.0.0 |
server.port | 3000 | CELL_SERVER__PORT overrides it; '${env.PORT}' follows a platform's PORT |
server.path | / | Base path of every route |
Under cell dev and createTestApp() the entry hands its request handler to the toolchain instead of listening itself.