/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-strict-mode-a5cd75ba39fb-strict-mode-s0624-c0000.md
strict mode - hono-docs
strict mode Source evidence: /Sources/raw/honojs hono/honojs hono.md Canonical citation: https://hono.dev/llms full.txt strict mode Summary Strict mode defau...
strict mode
Source evidence: /Sources/raw/honojshono/honojshono.md Canonical citation: https://hono.dev/llms-full.txt#strict-mode
Summary
Strict mode defaults to true and distinguishes the following routes. - /hello - /hello/ app.get('/hello') will not match GET /hello/. By setting strict mode to false, both paths will be treated equally. ```ts twoslash import...
Content
Strict mode defaults to true and distinguishes the following routes.
/hello/hello/
app.get('/hello') will not match GET /hello/.
By setting strict mode to false, both paths will be treated equally.
import { Hono } from 'hono'
// ---cut---
const app = new Hono({ strict: false })