buildKey
uses node:crypto
What a build is named by: the app's hash, or with a PWA, the app's and its pwa's together, so changing either
makes a new build.
import { base32 } from "#codebase/tcmts/core/hash"; import { createHash } from "node:crypto"; export function buildKey(app: string, pwa: string | undefined): string { if (!pwa) return app; return base32(createHash("sha256").update(`tcm-build\0${app}\0${pwa}`).digest()).slice( 0, app.length, ); }