Skip to content

fix(storage-gcs): correctly handle alwaysInsertFields#15541

Open
r1tsuu wants to merge 1 commit into
mainfrom
fix/google-always-add-field
Open

fix(storage-gcs): correctly handle alwaysInsertFields#15541
r1tsuu wants to merge 1 commit into
mainfrom
fix/google-always-add-field

Conversation

@r1tsuu

@r1tsuu r1tsuu commented Feb 6, 2026

Copy link
Copy Markdown
Member

Fixes #13497

Previously, the alwaysInsertFields: true feature was not handled properly in this adapter.

@github-actions

github-actions Bot commented Feb 6, 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 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving for now, but can we add test coverage to this for any future regressions and ensure all adapters behave the same?

@r1tsuu

r1tsuu commented Mar 19, 2026

Copy link
Copy Markdown
Member Author

Yes, I'll add before merging.

@r1tsuu

r1tsuu commented Mar 19, 2026

Copy link
Copy Markdown
Member Author

Actually, I think I'll open a new PR with tests for all the adapters, since this PR is only for google

DanRibbens pushed a commit that referenced this pull request Mar 30, 2026
…d comprehensive integration test suite with a vercel blob emulator (#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 #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.
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.

Disabled storage adapter and payload types

2 participants