Skip to content

Commit

Permalink
fix: ensure we pass an ArrayBuffer to blobStore.set and not a NodeJS …
Browse files Browse the repository at this point in the history
…Buffer
  • Loading branch information
JakeChampion committed Dec 6, 2024
1 parent ef92c48 commit 328210a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/build/src/plugins_core/blobs_upload/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const coreStep: CoreStepFunction = async function ({
systemLog(`Uploading blob ${key}`)

const { data, metadata } = await getFileWithMetadata(key, contentPath, metadataPath)
await blobStore.set(key, data, { metadata })
await blobStore.set(key, data.buffer, { metadata })
},
{ concurrency: 10 },
)
Expand Down
2 changes: 1 addition & 1 deletion packages/build/src/plugins_core/dev_blobs_upload/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const coreStep: CoreStepFunction = async function ({
log(logs, `- Uploading blob ${key}`, { indent: true })
}
const { data, metadata } = await getFileWithMetadata(key, contentPath, metadataPath)
await blobStore.set(key, data, { metadata })
await blobStore.set(key, data.buffer, { metadata })
},
{ concurrency: 10 },
)
Expand Down

0 comments on commit 328210a

Please sign in to comment.