payloadcms / payloadcms/payload
Bug (storage-vercel-blob): alwaysInsertFields option is not functioning on the vercel storage adapter
@denolfe is already working on this.
Since Jan 30, 2026.
- Dominant language
- TypeScript
- Stars
- 44.8k
- Forks
- 4.2k
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 53
Description
Describe the Bug
When the vercel blob storage plugin is disabled by setting enabled to false it stops inserting prefixes into collections that should have them. This means db schema drifts between environments where the plugin is disabled such as locally and environments where it is enabled such as production. From looking through the code for the storage packages it seems like this was fixed https://github.com/payloadcms/payload/commit/23a8689c11e6c7d19427fb1ea5cc710f37d19b39 for the s3 plugin but no others. The pr in my reproduction repo shows a solution by copying the code across to the other plugins: https://github.com/Surfytom/payload/pull/1
Link to the code that reproduces this issue
https://github.com/Surfytom/payload/commit/3466a272588403f857e72e3bdbd73b026b6d8857
Reproduction Steps
- Get blank payload project with vercel blob storage plugin added
- Disabled plugin by setting enabled option to false
- Add prefix to a collection used by the plugin
- Enable alwaysInsertFields option by setting it to true
- generate types and db schema
The types and db schema shouldn't change to add the prefix field to the collection with a prefix added which is a bug. The types and schemas should have changes to add the prefix defined in the plugin options.
Which area(s) are affected?
plugin: storage-*
Environment Info
Binaries:
Node: 22.15.0
npm: 10.9.2
Yarn: N/A
pnpm: 9.0.0
Relevant Packages:
payload: 3.73.0
next: 16.1.1
@payloadcms/db-mongodb: 3.73.0
@payloadcms/db-postgres: 3.73.0
@payloadcms/drizzle: 3.73.0
@payloadcms/email-nodemailer: 3.73.0
@payloadcms/graphql: 3.71.1
@payloadcms/next/utilities: 3.73.0
@payloadcms/plugin-cloud-storage: 3.73.0
@payloadcms/plugin-multi-tenant: 3.73.0
@payloadcms/richtext-lexical: 3.73.0
@payloadcms/sdk: 3.73.0
@payloadcms/storage-vercel-blob: 3.73.0
@payloadcms/translations: 3.73.0
@payloadcms/ui/shared: 3.73.0
react: 19.2.3
react-dom: 19.2.3
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 25.2.0: Tue Nov 18 21:09:40 PST 2025; root:xnu-12377.61.12~1/RELEASE_ARM64_T6000
Available memory (MB): 32768
Available CPU cores: 8
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.