-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[Bug]: Hot Reload not working with Cloudflare Pages #1137
Comments
This is a known issue and is in Cloudflare's hands to get Wrangler@v2 to support additional watch directories: cloudflare/workers-sdk#49 |
If you haven't seen it, checkout this comment where you can now install I believe the |
@drewdecarme appreciate the tip! that worked for me as well |
Hot reload is not working on Architect Sandbox either. #1601 I mentioned this here. |
Not working on o remix 1.1.3 and 1.2.2 even with wrangler@pages. |
For me, the browser needs to refresh twice in order to see updates. So each hot reload shows the second-most-recent update, not the one I just made. This is pretty annoying for my workflow. :(
I started another project with Remix + Cloudflare Pages about 8 weeks ago and I remember noticing that one of the version upgrades I made caused this to start happening. I don't really know enough about what's going on to say if this might be an issue with Edit: I have an app with the following versions where the live reload works:
|
This reverts commit b7e6a0e.
Anyone making any progress on this or can point me in the right direction to make a fix? having the issue myself. Edit: Not sure if they have been updated in the last couple days but using the current versions from the create -> cloudflare pages script do work
|
We've implemented a new platform-agnostic dev server in #5133 which will be available under the |
i’m trying to make the new dev server + HMR work with cloudflare-workers (using miniflare). i would love to help debug by testing any suggestions and combinations / permutations of configs to see if i can get it to work. my current issue is that i cannot get the websocket server to run, or at least not on any port that i can identify. i documented some of my attempts in this discussion. |
Obsoleted by #6133 . You should now be able to use the |
You can give the unstable dev server a run on cf pages and cf workers with the following commands: Pages npx create-remix@latest --template https://github.com/remix-run/remix/tree/templates_v2_dev/templates/cloudflare-pages Workers
|
What version of Remix are you using?
^1.1.1
What version of Node are you using? Minimum supported version is 14.
v17.0.1
Steps to Reproduce
app/routes/index.jsx
File changed
log in your console as well as the related logsnpm run dev
againapp/routes/index.jsx
is now presentExpected Behavior
We'd expect the changes to be immediately apparent
Actual Behavior
The changes are not visible until the process has be stopped and restarted using the
npm run dev
commandThe text was updated successfully, but these errors were encountered: