From a57b0c3eb312a3e7a56be085dd0e8990cfad0add Mon Sep 17 00:00:00 2001 From: yossydev Date: Fri, 23 Feb 2024 16:35:51 +0900 Subject: [PATCH] fix: error --- app/client.ts | 4 ++-- app/global.d.ts | 4 ---- app/islands/counter.tsx | 4 +++- vite.config.ts | 7 +++---- 4 files changed, 8 insertions(+), 11 deletions(-) diff --git a/app/client.ts b/app/client.ts index 16ecf96..4a2cea5 100644 --- a/app/client.ts +++ b/app/client.ts @@ -1,3 +1,3 @@ -import { createClient } from 'honox/client' +import { createClient } from "honox/client"; -createClient() +createClient(); diff --git a/app/global.d.ts b/app/global.d.ts index 12a558d..b4a84dc 100644 --- a/app/global.d.ts +++ b/app/global.d.ts @@ -5,10 +5,6 @@ type Head = { }; declare module "hono" { - interface Env { - Variables: {}; - Bindings: {}; - } interface ContextRenderer { ( content: string | Promise, diff --git a/app/islands/counter.tsx b/app/islands/counter.tsx index f34b454..ad97711 100644 --- a/app/islands/counter.tsx +++ b/app/islands/counter.tsx @@ -5,7 +5,9 @@ export default function Counter() { return (

{count}

- +
); } diff --git a/vite.config.ts b/vite.config.ts index a4c500b..d27d018 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -8,9 +8,8 @@ export default defineConfig(({ mode }) => { return { plugins: [client()], }; - } else { - return { - plugins: [honox(), pages()], - }; } + return { + plugins: [honox(), pages()], + }; });