Skip to content

Commit

Permalink
remove description not related to this PR
Browse files Browse the repository at this point in the history
  • Loading branch information
yusukebe committed Aug 28, 2024
1 parent df1689d commit eb98e41
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions packages/dev-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,32 +188,6 @@ export default defineConfig(async () => {
})
```

### Node.js & Bun
No additional dependencies needed.

```ts
import devServer from '@hono/vite-dev-server'
import nodeAdapter from '@hono/vite-dev-server/node'
// OR
// import bunAdapter from '@hono/vite-dev-server/bun'
import { defineConfig } from 'vite'

export default defineConfig(async () => {
return {
plugins: [
devServer({
adapter: nodeAdapter,
// OR
// adapter: bunAdapter,
}),
],
}
})
```

Using selected adapter, In hono app you can access environtment variable like ```ctx.env``` or ```env(ctx)```.


## Client-side

You can write client-side scripts and import them into your application using Vite's features.
Expand Down

0 comments on commit eb98e41

Please sign in to comment.