Skip to content

Remix

Remix 是一个基于 Web 标准的全栈框架。

现在,Remix 和 Hono 可以通过 fetch API 一起使用。

Remix + Hono

你可以像这样使用 Remix + Hono 将 Remix 作为 Hono 中间件:

ts
import * as build from '@remix-run/dev/server-build'
import { remix } from 'remix-hono/handler'

app.use('*', remix({ build, mode: process.env.NODE_ENV }))

另请参阅