refactor: improved reviving of islands (#100)

This commit is contained in:
Luca Casonato
2022-03-05 01:20:54 +01:00
committed by GitHub
parent 8daa280862
commit 4970663721
7 changed files with 110 additions and 69 deletions
+4
View File
@@ -5,6 +5,10 @@ export const BUILD_ID = Deno.env.get("DENO_DEPLOYMENT_ID") ||
crypto.randomUUID();
export const JS_PREFIX = `/js`;
export function bundleAssetUrl(path: string) {
return `${INTERNAL_PREFIX}${JS_PREFIX}/${BUILD_ID}${path}`;
}
declare global {
interface Crypto {
randomUUID(): string;