โก๏ธ Live Reload
Enabling Live Reload
Miniflare can automatically refresh your browser when your worker script changes.
$ miniflare --live-reloadwrangler.toml[miniflare]live_reload = trueconst mf = new Miniflare({ liveReload: true,});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:
export default { fetch() { const body = ` <!DOCTYPE html> <html> <body> <p>Try update me!</p> </body> </html> `;
return new Response(body, { headers: { "Content-Type": "text/html; charset=utf-8" }, }); },};