From eb98e41e6959663f433e7dde513e61278d6b2eeb Mon Sep 17 00:00:00 2001 From: Yusuke Wada Date: Wed, 28 Aug 2024 21:57:53 +0900 Subject: [PATCH] remove description not related to this PR --- packages/dev-server/README.md | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/packages/dev-server/README.md b/packages/dev-server/README.md index 1089089..1bc8659 100644 --- a/packages/dev-server/README.md +++ b/packages/dev-server/README.md @@ -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.