-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix live-reload with wrangler and esbuild #205
Comments
I somewhat fixed this if I run the commands not together, but I can't figure out why it doesn't work when I put everything in the The steps are the following (the code is here btw)
If you ran this commands in separated tabs it's works as intended, but when you try to run inside the I'd appreciate some help to solve this. Here's the error code in fully formed:
|
Can we use Hono's new Cloudflare Pages template? We are thinking that if we can run it with only Vite and Hono, without relying on Wrangler, it would give us a lot of flexibility. However, when I tried it at hand, it did not work well...(seems to be a problem with loki and other processes?) https://github.com/honojs/hono/releases/tag/v3.9.0 import { defineConfig } from 'vite'
import devServer from '@hono/vite-dev-server'
import pages from '@hono/vite-cloudflare-pages'
export default defineConfig({
plugins: [
pages(),
devServer({
entry: 'src/index.tsx'
})
]
}) |
live reload was working prior to this commit:
26bb2ac
dev build 26bb2ac Lane ldc0618@gmail.com Aug 22, 2023 at 8:48 AM
I had to convert the esbuild to use a config file.
Since then live reload with wranger has not worked. for reference here is the commands involved:
npm run dev
"dev": "run-p dev:*",
"dev:wrangler": "wrangler pages dev dist --live-reload",
"dev:esbuild": "node ./src/cms/util/build.mjs",
The goal is to restore live reload so that anytime a tsx, js, css, etc file is changed, it will build, copy to the dist folder and restart the server.
The text was updated successfully, but these errors were encountered: