Skip to content

Commit ca8f1db

Browse files
committed
docs(readme): add warnings
1 parent 86c76cb commit ca8f1db

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ export default app
2424

2525
This means you can create API routes with Hono's syntax and use a lot of Hono's built-in middleware and third-party middleware.
2626

27+
> [!WARNING]
28+
>
29+
> `hono-remix-adapter` is currently unstable. The API may be changed without announcement in the future.
30+
2731
## Install
2832

2933
```bash

example/server/index.ts

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,14 @@
11
// server/index.ts
22
import { Hono } from 'hono'
3+
import { poweredBy } from 'hono/powered-by'
34

4-
const app = new Hono<{
5-
Bindings: {
6-
MY_VAR: string
7-
}
8-
}>()
5+
const app = new Hono()
96

10-
app.use(async(c, next) => {
11-
await next()
12-
c.header('X-Powered-By', 'Remix and Hono')
13-
})
7+
app.use(poweredBy())
148

159
app.get('/api', (c) => {
1610
return c.json({
1711
message: 'Hello',
18-
var: c.env.MY_VAR
1912
})
2013
})
2114

0 commit comments

Comments
 (0)