Yusuke Wada
Yusuke Wada
Hi @chtibizoux There is something I want to ask you. First, is the `@hono/vite-bun` necessary? This means that to run your application on production, do you need to build the...
Hi @chtibizoux Regarding this PR, I would like to pass on merging `@hono/vite-bun`. * If your app does not use a Vite specific feature, you can run your app with...
Hi @ambergristle ! The [`hono-vite-react-stack`](https://github.com/yusukebe/hono-vite-react-stack) uses the [`vite-plugin-ssr-hot-reload`](https://github.com/yusukebe/vite-plugin-ssr-hot-reload) which I made will inject the script for "react-refresh": https://github.com/yusukebe/vite-plugin-ssr-hot-reload/blob/main/src/plugin.ts#L77-L86 So that is the answer. I've created the [`hono-vite-react-stack`](https://github.com/yusukebe/hono-vite-react-stack) for the practical...
@ambergristle > it looks like `hono-vite-react-stack` is for projects running on cloudflare. is that right? i like to build on bun, so i'm adapting your implementation to use bun plugins....
Hey @ambergristle Thank you for providing the repo. I've investigated. As you said, you should put the `ssrHotReload` before `devServer`. The `ssrHotReload` will be applied when the content-type is `text/html`,...
@ambergristle That's great! > could you share a little more about why `content-type` isn't fixed if `devServer` is executed first? is it because `devServer` formats and returns the response? Honestly,...
Hi @mderazon Yes. You can put API things in any directory under `/app/routes`. So `/app/routes/api` is good.
Hi @jlucaso1 Thank you for the issue. It's a known issue for `@hono/vite-dev-server`. It depends `miniflare` to keep backward compatibility: https://github.com/honojs/vite-plugins/blob/fdd4b48e7833156360097960fe1dca0bbcafd845/packages/dev-server/package.json#L79 But, now, we may mind the backward compatibility. If...
Now, `@hono/vite-dev-server` does not depend on `miniflare`. We can close this issue. Thanks!
Hi @dinfer This is a good issue and is the same with https://github.com/honojs/hono/issues/2491