Skip to content

docs: add registerStorageProvider steps to storage-setup guide#611

Merged
borisno2 merged 2 commits into
mainfrom
claude/issue-562-xyuxma
Jun 27, 2026
Merged

docs: add registerStorageProvider steps to storage-setup guide#611
borisno2 merged 2 commits into
mainfrom
claude/issue-562-xyuxma

Conversation

@borisno2

Copy link
Copy Markdown
Member

Summary

Following the storage-setup guide verbatim previously caused a runtime error on the first upload:

Unknown storage provider type: s3. Register it with registerStorageProvider('s3', ...)

This happened because registerStorageProvider was only documented in the package CLAUDE.md and CHANGELOG, not in the end-user guide. The read path worked fine (metadata only stamps the provider name), so the problem wasn't visible until the first upload.

Changes made to docs/content/guides/storage-setup.md:

  • New "Provider Registration" section near the top explaining the registry model, noting that 'local' is built in (no setup needed) and all other providers must be explicitly registered
  • instrumentation.ts recommendation as the correct Next.js location to call registerStorageProvider, with a note about Next.js 13/14 vs 15+ support
  • AWS S3 setup — new step 6 showing how to register S3StorageProvider in instrumentation.ts; CloudFront step renumbered to 8
  • Vercel Blob setup — new step 5 showing how to register VercelBlobStorageProvider in instrumentation.ts; subsequent steps renumbered
  • S3-Compatible Services — callout noting that Backblaze B2, MinIO, and DigitalOcean Spaces all use the 's3' type and need the same registration step
  • Multiple Storage Providers advanced pattern updated to show registering both S3 and Vercel Blob in instrumentation.ts
  • Environment-Specific Storage pattern updated to show conditional dynamic import + registration per NODE_ENV
  • New troubleshooting entry for Unknown storage provider type explaining why reads work but writes fail, and pointing to the fix

Test plan

  • Guide reads end-to-end without the missing registration step
  • All provider sections (S3, Vercel Blob, S3-compatible) include a registration step
  • instrumentation.ts is clearly recommended as the registration location for Next.js hosts
  • 'local' is noted as built-in (no registration needed) in the new section and troubleshooting entry

Closes #562


Generated by Claude Code

Following the guide verbatim previously threw "Unknown storage provider
type: s3" on first upload because the registration step was undocumented.

- Add a "Provider Registration" section near the top explaining the
  registry model, noting that 'local' is built in and needs no setup
- Add step 6 (register S3 provider via instrumentation.ts) to the AWS
  S3 setup flow; renumber subsequent steps accordingly
- Add step 5 (register Vercel Blob provider) to the Vercel Blob setup
  flow; renumber subsequent steps accordingly
- Add a registration-required callout to the S3-Compatible Services
  section (Backblaze B2, MinIO, DigitalOcean Spaces all use type 's3')
- Update the Multiple Storage Providers advanced pattern to show
  registering both S3 and Vercel Blob providers in instrumentation.ts
- Update the Environment-Specific Storage pattern to show conditional
  dynamic import + registration per NODE_ENV
- Add "Unknown storage provider type" troubleshooting entry explaining
  that reads are unaffected and pointing to the new section

Closes #562

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TzbiVtVTFXT4Y7LPgLuAwP
@changeset-bot

changeset-bot Bot commented Jun 27, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 66d831a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel

vercel Bot commented Jun 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
stack-docs Ready Ready Preview, Comment Jun 27, 2026 10:18pm

…Next.js 13 caveat

- Add missing `type S3StorageConfig` import and `<S3StorageConfig>` type
  parameter to the Environment-Specific Storage dynamic-import snippet so
  it type-checks correctly (without it, TypeScript infers BaseStorageConfig
  and new S3StorageProvider(config) fails to compile)
- Add Next.js 13/14 caveat about experimental.instrumentationHook to the
  top-level Provider Registration section, not just the S3 step note

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TzbiVtVTFXT4Y7LPgLuAwP
@github-actions

Copy link
Copy Markdown
Contributor

Coverage Report for Core Package Coverage (./packages/core)

Status Category Percentage Covered / Total
🔵 Lines 91.51% (🎯 65%) 841 / 919
🔵 Statements 90.72% (🎯 65%) 871 / 960
🔵 Functions 97.93% (🎯 62%) 142 / 145
🔵 Branches 79.05% (🎯 50%) 551 / 697
File CoverageNo changed files found.
Generated in workflow #1208 for commit 66d831a by the Vitest Coverage Report Action

@github-actions

Copy link
Copy Markdown
Contributor

Coverage Report for UI Package Coverage (./packages/ui)

Status Category Percentage Covered / Total
🔵 Lines 76.03% 92 / 121
🔵 Statements 75.39% 95 / 126
🔵 Functions 75.6% 31 / 41
🔵 Branches 65.78% 75 / 114
File CoverageNo changed files found.
Generated in workflow #1208 for commit 66d831a by the Vitest Coverage Report Action

@github-actions

Copy link
Copy Markdown
Contributor

Coverage Report for CLI Package Coverage (./packages/cli)

Status Category Percentage Covered / Total
🔵 Lines 79.21% 1490 / 1881
🔵 Statements 78.92% 1550 / 1964
🔵 Functions 84.45% 201 / 238
🔵 Branches 67.25% 653 / 971
File CoverageNo changed files found.
Generated in workflow #1208 for commit 66d831a by the Vitest Coverage Report Action

@github-actions

Copy link
Copy Markdown
Contributor

Coverage Report for Auth Package Coverage (./packages/auth)

Status Category Percentage Covered / Total
🔵 Lines 74.64% 159 / 213
🔵 Statements 69.74% 166 / 238
🔵 Functions 83.11% 64 / 77
🔵 Branches 70.67% 94 / 133
File CoverageNo changed files found.
Generated in workflow #1208 for commit 66d831a by the Vitest Coverage Report Action

@github-actions

Copy link
Copy Markdown
Contributor

Coverage Report for Storage Package Coverage (./packages/storage)

Status Category Percentage Covered / Total
🔵 Lines 73.22% 186 / 254
🔵 Statements 75% 207 / 276
🔵 Functions 83.33% 65 / 78
🔵 Branches 70.73% 174 / 246
File CoverageNo changed files found.
Generated in workflow #1208 for commit 66d831a by the Vitest Coverage Report Action

@github-actions

Copy link
Copy Markdown
Contributor

Coverage Report for RAG Package Coverage (./packages/rag)

Status Category Percentage Covered / Total
🔵 Lines 47.97% 355 / 740
🔵 Statements 48.14% 377 / 783
🔵 Functions 54.26% 70 / 129
🔵 Branches 42.55% 180 / 423
File CoverageNo changed files found.
Generated in workflow #1208 for commit 66d831a by the Vitest Coverage Report Action

@github-actions

Copy link
Copy Markdown
Contributor

Coverage Report for Storage S3 Package Coverage (./packages/storage-s3)

Status Category Percentage Covered / Total
🔵 Lines 100% 40 / 40
🔵 Statements 100% 40 / 40
🔵 Functions 100% 9 / 9
🔵 Branches 100% 19 / 19
File CoverageNo changed files found.
Generated in workflow #1208 for commit 66d831a by the Vitest Coverage Report Action

@github-actions

Copy link
Copy Markdown
Contributor

Coverage Report for Storage Vercel Package Coverage (./packages/storage-vercel)

Status Category Percentage Covered / Total
🔵 Lines 100% 38 / 38
🔵 Statements 100% 38 / 38
🔵 Functions 100% 8 / 8
🔵 Branches 100% 22 / 22
File CoverageNo changed files found.
Generated in workflow #1208 for commit 66d831a by the Vitest Coverage Report Action

@borisno2 borisno2 merged commit 08b18af into main Jun 27, 2026
6 checks passed
@borisno2 borisno2 deleted the claude/issue-562-xyuxma branch June 27, 2026 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: storage-setup guide omits the registerStorageProvider step — following it throws 'Unknown storage provider type' at upload

2 participants