Deploy Hono on Light Cloud - a Node.js container on port 3000 using the Node server adapter, scaling to zero when idle.
Deploy Hono
Hono is detected from your package.json and runs as a Node.js container on port 3000, via its Node adapter. No Dockerfile needed - one is generated on Node 22.
Serve it#
Use @hono/node-server and the routed port:
import { serve } from '@hono/node-server';
import { Hono } from 'hono';
const app = new Hono();
app.get('/', c => c.text('up'));
serve({ fetch: app.fetch, port: Number(process.env.PORT) || 3000 });
The adapter binds all interfaces - nothing else to configure.
Configuration and database#
Read environment variables from process.env at startup. Set DATABASE_URL from the Credentials tab for your driver or ORM.
Scaling#
Hono starts fast, which keeps cold starts cheap - a good fit for scale to zero everywhere, previews and production alike.