Major Changes
-
a2b492e
Thanks @omeraplak! - # Server Hono 1.x — pluggable HTTP serverCore no longer embeds an HTTP server. Use the Hono provider.
Full migration guide: Migration Guide
Basic setup
import { VoltAgent } from "@voltagent/core"; import { honoServer } from "@voltagent/server-hono"; new VoltAgent({ agents: { agent }, server: honoServer({ port: 3141, enableSwaggerUI: true }), });
Custom routes and auth
import { honoServer, jwtAuth } from "@voltagent/server-hono"; new VoltAgent({ agents: { agent }, server: honoServer({ configureApp: (app) => { app.get("/api/health", (c) => c.json({ status: "ok" })); }, auth: jwtAuth({ secret: process.env.JWT_SECRET!, publicRoutes: ["/health", "/metrics"], }), }), });