c15t
/
Select a framework
Hono Quickstart
Writing Runners
Configuration
Deployment
Orchestration
Advanced Topics
OSS
Contributing
License
C15T Logo
DocsChangelog
xbskydiscordgithub0
c15t
/
Select a framework
Hono Quickstart
Writing Runners
Configuration
Deployment
Orchestration
Advanced Topics
OSS
Contributing
License
home-2Docs
chevron-rightFrameworks
chevron-rightHono
chevron-rightDeployment

Deployment

Deploy Hono applications with Runners to various platforms

Guide to deploying Hono applications with Runners (via Nitro) to production.

Vercel

Setup

  1. Configure Nitro for Vercel:
import { defineConfig } from "nitro/config";

export default defineConfig({
  modules: ["runners/nitro"],
  routes: {
    "/**": "./src/index.ts", // Your Hono app
  },
  runners: {
    region: process.env.VERCEL_REGION || "us-east-1",
  },
});
  1. Deploy:
NITRO_PRESET=vercel pnpm build
npx vercel --prebuilt

Node.js

Setup

  1. Build:
pnpm build
  1. Run:
node .output/server/index.mjs

PM2

pm2 start .output/server/index.mjs --name runners-hono

Docker

Dockerfile

FROM node:18-alpine

WORKDIR /app

# Install Playwright browsers if needed
RUN npx playwright install --with-deps chromium

COPY package*.json ./
RUN npm ci --production

COPY .output ./.output

EXPOSE 3000

CMD ["node", ".output/server/index.mjs"]

Build and Run

docker build -t runners-hono .
docker run -p 3000:3000 -e RUNNER_REGION=us-east-1 runners-hono

Environment Variables

VariableDescriptionRequired
RUNNER_REGIONRegion identifierNo (defaults to "us-east-1")
DEBUGEnable debug loggingNo
RUNNERS_DEBUGEnable runner debug loggingNo

Next Steps

  • Learn about Configuration
  • Check Quickstart for setup guide
Runners brings execution, reliability, and distribution to async TypeScript. Build tests and checks that can run locally, in CI, or distributed across regions with ease.
Product
  • Documentation
  • Components
Company
  • GitHub
  • Contact
Legal
  • Privacy Policy
  • Cookie Policy
runners