Repository navigation
chore(templates): fix with-cloudflare-d1 storage adapter registration - #17217
Closed
soumajitgh wants to merge 1 commit into
Closed
soumajitgh wants to merge 1 commit into
soumajitgh wants to merge 1 commit into
Conversation
soumajitgh
marked this pull request as ready for review
July 7, 2026 00:51
Collaborator
|
@soumajitgh Thanks for opening this issue. The Cloudflare One Click template on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR fixes the
with-cloudflare-d1template so its R2 storage adapter is registered correctly when the template is installed with the currently pinned released Payload packages.Problem
The
with-cloudflare-d1template was updated to use the newer top-levelstorageconfig key, but the template still pins released3.82.1Payload packages.On that release line, storage adapters are still expected to be registered through
plugins, notstorage. As a result, ther2Storage(...)adapter in the template is not initialized.That mismatch causes two user-facing failures:
Functions cannot be passed directly to Client Componentsbecause the unprocessedstorageconfig leaks into the client config.Solution
This change switches the
with-cloudflare-d1template back fromstorage: [...]toplugins: [...]for ther2Storage(...)registration.That keeps the template aligned with the released
3.82.1runtime behavior it currently installs, while preserving the intended R2 integration.Impact
Users who create projects from
templates/with-cloudflare-d1with the currently published package versions should be able to:Validation
storage: [...]while pinning3.82.1packages.plugins: [...]and committing only that scoped template change.Related Issue
Fixes #17195