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

Configuration

Configure Runners in Hono applications

Configuration options for Runners in Hono applications running on Nitro.

Basic Configuration

import { defineConfig } from "nitro/config";

export default defineConfig({
  modules: ["runners/nitro"],
  routes: {
    "/**": "./src/index.ts", // Your Hono app
  },
  runners: {
    pattern: ["src/**/*.ts", "runners/**/*.ts"],
    region: process.env.RUNNER_REGION || "us-east-1",
  },
});

Hono App Structure

Your Hono app (src/index.ts) works independently:

import { Hono } from "hono";

const app = new Hono();

app.get("/", (c) => {
  return c.json({ message: "Hello Hono!" });
});

// Your routes here

export default app;

The Runners module automatically adds /api/runner/* endpoints without interfering with your Hono routes.

Configuration Options

See Nitro Configuration for all available options.

Next Steps

  • Learn about Deployment
  • 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