Skip to content

Commit 30a64bd

Browse files
committed
fix: convert buffers into blobs before calling blobStore.set
1 parent ef92c48 commit 30a64bd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/build/src/plugins_core/blobs_upload/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const coreStep: CoreStepFunction = async function ({
7272
systemLog(`Uploading blob ${key}`)
7373

7474
const { data, metadata } = await getFileWithMetadata(key, contentPath, metadataPath)
75-
await blobStore.set(key, data, { metadata })
75+
await blobStore.set(key, new Blob([data]), { metadata })
7676
},
7777
{ concurrency: 10 },
7878
)

packages/build/src/plugins_core/dev_blobs_upload/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const coreStep: CoreStepFunction = async function ({
7777
log(logs, `- Uploading blob ${key}`, { indent: true })
7878
}
7979
const { data, metadata } = await getFileWithMetadata(key, contentPath, metadataPath)
80-
await blobStore.set(key, data, { metadata })
80+
await blobStore.set(key, new Blob([data]), { metadata })
8181
},
8282
{ concurrency: 10 },
8383
)

0 commit comments

Comments
 (0)