feat: add auto reload on restart (#70)

This commit adds support for auto reloading open pages when fresh
restarts. This is particularly useful when `deno run` is used with
`--watch`.
This commit is contained in:
Luca Casonato
2021-10-27 01:19:01 +02:00
committed by GitHub
parent f0b96b80c8
commit 95289380f3
4 changed files with 46 additions and 3 deletions
+2
View File
@@ -1,4 +1,6 @@
export const INTERNAL_PREFIX = "/_frsh";
export const REFRESH_JS_URL = `${INTERNAL_PREFIX}/refresh.js`;
export const ALIVE_URL = `${INTERNAL_PREFIX}/alive`;
export const BUILD_ID = Deno.env.get("DENO_DEPLOYMENT_ID") ||
crypto.randomUUID();
export const JS_PREFIX = `/js`;