Skip to content

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-adapter

Every 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.

KeyDefault
server.host127.0.0.1Use 0.0.0.0 in containers: CELL_SERVER__HOST=0.0.0.0
server.port3000CELL_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.