🐛 BUG: wrangler pages dev --live-reload does not watch static assets
#13502
Replies: 9 comments
-
|
After a little investigation wrangler seems to only watch files in the
|
Beta Was this translation helpful? Give feedback.
-
|
That would explain this one too: #4824 |
Beta Was this translation helpful? Give feedback.
-
|
Yes, this is surely related, if not a duplicate. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @malobre, thank you for reporting this issue. You are indeed correct in saying that
Triaging this issue and will discuss it as part of the |
Beta Was this translation helpful? Give feedback.
-
|
this, combined with |
Beta Was this translation helpful? Give feedback.
-
|
Are there any updates on this? |
Beta Was this translation helpful? Give feedback.
-
|
what I've done is run another server&builder, using wrangler only for cloudflare related functions, in my case I use esbuild |
Beta Was this translation helpful? Give feedback.
-
I know there are endless combinations of services that could be applied to Pages in such a scenario, but if you could provide an example that would be much appreciated. |
Beta Was this translation helpful? Give feedback.
-
|
Anecdotally, this was particularly confusing to me because the documentation for
However, based off @CarmenPopoviciu's comment:
This suggests HTML only reloads when these type of files change. Maybe this could also be cleared up in docs? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Which Cloudflare product(s) does this pertain to?
Wrangler core, Miniflare
What version(s) of the tool(s) are you using?
wrangler@3.41.0, miniflare@3.20240320.1
What version of Node are you using?
21.7.0
What operating system and version are you using?
Linux 6.8.1 (arch linux)
Describe the Bug
Observed behavior
Editing a file served by the pages dev server does not trigger a page reload.
Expected behavior
Page reload on file update.
Steps to reproduce
index.html)wrangler pages dev --live-reload [directory]misc
There are comments on the original PR adding the live reload feature mentioning that users are unable to get it to work: #220
Potentially related to #4124 ?
Please provide a link to a minimal reproduction
No response
Please provide any relevant error logs
No errors in browser console or wrangler logs
Beta Was this translation helpful? Give feedback.
All reactions