Hono

07 Deploy

Check Hono runtime, environment, and operations before deploying Anvia routes.

Runtime Checklist

AreaCheck
RuntimeProvider SDKs and storage clients work in your chosen Hono adapter
SecretsProvider keys are server-only environment variables
StreamingHost and proxy do not buffer application/x-ndjson responses
TimeoutsRequest timeout covers model latency and tool calls
StorageConversations, memory, retrieval indexes, and traces are durable

Node Server Example

import { serve } from "@hono/node-server";
import { app } from "./app";

serve({
  fetch: app.fetch,
  hostname: "0.0.0.0",
  port: Number(process.env.PORT ?? 3000),
});

Observability

const response = await supportAgent
  .prompt(message)
  .withTrace({
    name: "hono-support-route",
    userId,
    sessionId: conversationId,
    tags: ["hono"],
  })
  .send();

Attach observers for logs, metrics, Langfuse, or OpenTelemetry.

Deployment Smoke Test

curl -X POST "$APP_URL/api/support" \
  -H "Content-Type: application/json" \
  -d '{"message":"Say hello"}'

Next

Use Troubleshooting for common failures. Related guides: Observers, Langfuse, and OpenTelemetry.