Skip to content

Commit

Permalink
docs(dev-server): tweak README (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
yusukebe authored Apr 6, 2024
1 parent 60d7986 commit f44301a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions packages/dev-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ You can develop your application with Vite. It's fast.
- Support any `fetch`-based applications.
- Hono applications run on.
- Fast by Vite.
- HMR (Only for the Client-side. [Currently, Vite doesn't support HMR for SSR](https://github.com/vitejs/vite/issues/7887)).
- HMR (Only for the client side. [Currently, Vite doesn't support HMR for SSR](https://github.com/vitejs/vite/issues/7887)).
- Plugins are available, e.g., Cloudflare Pages.
- Also runs on Bun.

Expand All @@ -31,7 +31,7 @@ export default {
This code can also run on Cloudflare Workers or Bun.
And if you change the entry point, you can run on Deno, Vercel, Lagon, and other platforms.

Hono is designed for `fetch`-based application like this.
Hono is designed for `fetch`-based applications like this.

```ts
import { Hono } from 'hono'
Expand Down Expand Up @@ -132,11 +132,11 @@ export const defaultOptions: Required<Omit<DevServerOptions, 'cf'>> = {

### `injectClientScript`

If it's `true` and the response content-type is "HTML", inject the script that enables Hot-reload. default is `true`.
If it's `true` and the response content type is "HTML", inject the script that enables Hot-reload. default is `true`.

### `exclude`

The paths which are not served by the dev-server.
The paths that are not served by the dev-server.

If you have static files in `public/assets/*` and want to return them, exclude `/assets/*` as follows:

Expand Down Expand Up @@ -183,9 +183,6 @@ export default defineConfig(async () => {
})
```

> [!NOTE]
> The `wrangler.toml` is not used in the Cloudflare Pages production environment. Please configure Bindings from the dashboard.
## Client-side

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

0 comments on commit f44301a

Please sign in to comment.