Skip to content

hashDeclaredContext

hashDeclaredContext(declared): Promise<{ dims: CanonicalDims; dropped: string[]; hash: string; }>

Defined in: context.ts:346

Convenience: declared shape → normalized dims → hash. Declared dims ONLY — no environment parameter, by design: env signals must never enter the fragment identity (fragments.ts doctrine), or the shared CDN cache keys on device/daypart combinations and bills a fresh generation for each. A signature that ACCEPTED an env bag was a standing invitation to defeat that fence.

DeclaredContext

Promise<{ dims: CanonicalDims; dropped: string[]; hash: string; }>