Skip to content

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

Merged
DanRibbens merged 3 commits into
mainfrom
fix/vercel-blob
Mar 30, 2026
Merged

fix(storage-vercel-blob): properly handle alwaysInsertFields and add comprehensive integration test suite with a vercel blob emulator#16080
DanRibbens merged 3 commits into
mainfrom
fix/vercel-blob

Conversation

@r1tsuu

@r1tsuu r1tsuu commented Mar 27, 2026

Copy link
Copy Markdown
Member

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

github-actions Bot commented Mar 27, 2026

Copy link
Copy Markdown
Contributor

📦 esbuild Bundle Analysis for payload

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

@DanRibbens DanRibbens merged commit 8530b45 into main Mar 30, 2026
451 of 456 checks passed
@DanRibbens DanRibbens deleted the fix/vercel-blob branch March 30, 2026 19:50
@github-actions

github-actions Bot commented Apr 1, 2026

Copy link
Copy Markdown
Contributor

🚀 This is included in version v3.81.0

milamer pushed a commit to milamer/payload that referenced this pull request Apr 20, 2026
…d comprehensive integration test suite with a vercel blob emulator (payloadcms#16080)

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 payloadcms#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.
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.

2 participants