Miniflare automatically refreshes your browser when your Worker script
changes when liveReload
is set to true
.
const mf = new Miniflare({
Miniflare will only inject the <script>
tag required for live-reload at the
end of responses with the Content-Type
header set to text/html
:
return new Response(body, {
headers: { "Content-Type": "text/html; charset=utf-8" },