From f44301a764ca65ce6ad8bf18e37b9c361557b5ab Mon Sep 17 00:00:00 2001 From: Yusuke Wada Date: Sun, 7 Apr 2024 06:07:29 +0900 Subject: [PATCH] docs(dev-server): tweak README (#118) --- packages/dev-server/README.md | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/packages/dev-server/README.md b/packages/dev-server/README.md index 5273ef8..1f9726d 100644 --- a/packages/dev-server/README.md +++ b/packages/dev-server/README.md @@ -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. @@ -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' @@ -132,11 +132,11 @@ export const defaultOptions: Required> = { ### `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: @@ -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.