Zum Inhalt springen

Hono routing API reference

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

Hinzugefügt in: astro@7.0.0 Beta

The astro/hono module provides advanced routing handlers built as Hono-compatible wrappers.

import {
FetchState,
astro,
actions,
cache,
i18n,
middleware,
pages,
redirects,
sessions,
trailingSlash,
} from "astro/hono";

The astro/hono module exports the same handler names as astro/fetch, but each returns a Hono middleware function. This lets you mix Astro handlers with any Hono middleware from the ecosystem.

Learn how to use Hono with Astro in the advanced routing guide.
Wirke mit Community Sponsor