Skip to content

fix(storage-vercel-blob): properly handle alwaysInsertFields and add comprehensive integration test suite with a vercel blob emulator#16080

Open
r1tsuu wants to merge 3 commits intomainfrom
fix/vercel-blob
Open

fix(storage-vercel-blob): properly handle alwaysInsertFields and add comprehensive integration test suite with a vercel blob emulator#16080
r1tsuu wants to merge 3 commits intomainfrom
fix/vercel-blob

Conversation

@r1tsuu
Copy link
Copy Markdown
Member

@r1tsuu r1tsuu commented Mar 27, 2026

This PR:

  • Adds Vercel Blob Emulator ghcr.io/payloadcms/vercel-blob-emulator:latest from https://github.com/payloadcms/vercel-blob-emulator to our docker-compose.yml (same purpose as with localstack, azure-storage etc.)
  • Adds comprehensive integration test suite for the vercel blob adapter (before we did not have any), including client uploads. Pretty much copy of our tests for S3, just adapted for vercel SDK instead of AWS S3.
  • Updates the SDK (@vercel/blob) to 2.3.1
  • Fixes an issue with alwaysInsertFields - previously we did not handle this property at all - the copied tests from S3 caught that. Similar to fix(storage-gcs): correctly handle alwaysInsertFields #15541
  • Adds ability to override baseUrl with STORAGE_VERCEL_BLOB_BASE_URL env variable - required for the emulator so requests don't go to *.blob.vercel-storage.com.

The emulator is good enough for local developing if you want to avoid locally either switching to local disk storage conditionally or using a vercel blob token.

r1tsuu added 2 commits March 27, 2026 14:59
…dd comprehensive integration test suite with a vercel blob emulator
@r1tsuu r1tsuu requested a review from denolfe as a code owner March 27, 2026 18:52
@r1tsuu r1tsuu changed the title fix(storage-vercel-blob): properly handle alwaysInsertFields and add comprehensive integration test suite with a vercel blob emulator fix(storage-vercel-blob): properly handle alwaysInsertFields and add comprehensive integration test suite with a vercel blob emulator Mar 27, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 27, 2026

📦 esbuild Bundle Analysis for payload

This analysis was generated by esbuild-bundle-analyzer. 🤖
This PR introduced no changes to the esbuild bundle! 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant