/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-router-option-1a70fed9b677-router-option-s0625-c0000.md
router option - hono-docs
router option Source evidence: /Sources/raw/honojs hono/honojs hono.md Canonical citation: https://hono.dev/llms full.txt router option Summary The router op...
router option
Source evidence: /Sources/raw/honojshono/honojshono.md Canonical citation: https://hono.dev/llms-full.txt#router-option
Summary
The router option specifies which router to use. The default router is SmartRouter. If you want to use RegExpRouter, pass it to a new Hono instance: ```ts twoslash import { Hono } from 'hono' // ---cut--- import { RegExpRouter }...
Content
The router option specifies which router to use. The default router is SmartRouter. If you want to use RegExpRouter, pass it to a new Hono instance:
import { Hono } from 'hono'
// ---cut---
import { RegExpRouter } from 'hono/router/reg-exp-router'
const app = new Hono({ router: new RegExpRouter() })