From 328210aad4c9530aa35398790f2b4d23459541d8 Mon Sep 17 00:00:00 2001 From: jake champion Date: Fri, 6 Dec 2024 15:43:26 +0000 Subject: [PATCH] fix: ensure we pass an ArrayBuffer to blobStore.set and not a NodeJS Buffer --- packages/build/src/plugins_core/blobs_upload/index.ts | 2 +- packages/build/src/plugins_core/dev_blobs_upload/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/build/src/plugins_core/blobs_upload/index.ts b/packages/build/src/plugins_core/blobs_upload/index.ts index b7d76a52a7..34e2a61373 100644 --- a/packages/build/src/plugins_core/blobs_upload/index.ts +++ b/packages/build/src/plugins_core/blobs_upload/index.ts @@ -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 }, ) diff --git a/packages/build/src/plugins_core/dev_blobs_upload/index.ts b/packages/build/src/plugins_core/dev_blobs_upload/index.ts index 525a8066b2..f52fb94cf4 100644 --- a/packages/build/src/plugins_core/dev_blobs_upload/index.ts +++ b/packages/build/src/plugins_core/dev_blobs_upload/index.ts @@ -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 }, )