Skip to content
This repository was archived by the owner on Feb 11, 2026. It is now read-only.

Commit db91e24

Browse files
fix: vercel webapp build error on node 22
1 parent 42a7f62 commit db91e24

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/platform-core/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export async function sha256(
110110
dataBuffer = input
111111
}
112112

113-
const hashBuffer = await crypto.subtle.digest('SHA-256', dataBuffer)
113+
const hashBuffer = await crypto.subtle.digest('SHA-256', dataBuffer as any)
114114
const hashArray = Array.from(new Uint8Array(hashBuffer))
115115
const hashHex = hashArray
116116
.map((b) => ('00' + b.toString(16)).slice(-2))

0 commit comments

Comments
 (0)