Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
✅ Shadcn registry validated — no registry changes detected. |
…nd improve error handling for asset presence
…r handling during asset deletion
…der existence during asset creation and updates
…atic defaults for S3 and Vercel Blob adapters
…proved error handling
…n tracking and increase timeout for AI response
…ndling in media adapter
…or localAdapter in media backend plugin
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
…y and enhanced request handling
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
Type of change
Checklist
pnpm buildpassespnpm typecheckpassespnpm lintpassesdocs/content/docs/) if consumer-facing types or behavior changedScreenshots
Note
Medium Risk
Introduces a new backend plugin with file upload and URL-validation logic across multiple storage providers (local, S3, Vercel Blob), which is security- and data-handling adjacent despite good test coverage.
Overview
Adds a new media library backend plugin (
plugins/media) exposing asset/folder CRUD plus upload endpoints, with configurable hooks, size/MIME limits, and adapter-specific routing.Implements pluggable storage adapters: local filesystem direct upload, S3-compatible presigned URL token generation, and Vercel Blob token exchange, including URL-prefix/hostname validation, S3 key sanitization, and safe deletion/rollback behavior.
Updates packaging/build tooling to ship
./plugins/media/apiand treat@aws-sdk/*and@vercel/blobas optional peer deps (externals/knip/exports), adds extensive Vitest coverage with stubs/mocks, and tweaks the chat smoke E2E to be retry-safe via a per-run message ID.Written by Cursor Bugbot for commit df4c3ec. This will update automatically on new commits. Configure here.