Skip to content

Commit c9ca23b

Browse files
committed
fix(cli): convert buffer to Uint8Array for fetch request body in uploadAppBundle
1 parent 2c71173 commit c9ca23b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/cli/src/bin/utils/uploadAppBundle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const uploadAppBundle = async (endpoint: string, bundle: string) => {
1919

2020
const requestBundle = await fetch(endpoint, {
2121
method: 'POST',
22-
body: state.buffer,
22+
body: new Uint8Array(state.buffer),
2323
headers: {
2424
Authorization: `Bearer ${process.env.FUSION_TOKEN}`,
2525
'Content-Type': 'application/zip',

0 commit comments

Comments
 (0)