Skip to content

Commit 94bb6b6

Browse files
fix: pass arraybuffer to blobstore
1 parent 1ec0786 commit 94bb6b6

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

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

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

7474
const { data, metadata } = await getFileWithMetadata(key, contentPath, metadataPath)
75-
const str = data.toString()
76-
console.log(`### Str: ${str}`)
77-
await blobStore.set(key, str, { metadata })
75+
await blobStore.set(key, data.buffer, { metadata })
7876
},
7977
{ concurrency: 10 },
8078
)

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +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-
const str = data.toString()
81-
console.log(`### Str: ${str}`)
82-
await blobStore.set(key, str, { metadata })
83-
84-
// await blobStore.set(key, data, { metadata })
80+
await blobStore.set(key, data.buffer, { metadata })
8581
},
8682
{ concurrency: 10 },
8783
)

0 commit comments

Comments
 (0)