What's New
Vercel Blob, the managed file storage service, now offers private storage capabilities in public beta. This addition allows developers to store sensitive files—such as contracts, invoices, and internal reports—with authentication-gated access, preventing accidental exposure through public URLs.
Key Features
Dual Storage Model:
- Public storage: Allows public reads for media assets like images and videos
- Private storage: Requires authentication for all read and write operations
Creating Private Stores: Create a new private store using the Vercel dashboard or CLI:
vercel blob create-store [name] --access private
When created within a linked Vercel project, the CLI automatically configures the BLOB_READ_WRITE_TOKEN environment variable for your deployments.
Developer Implementation
SDK Updates:
Update to @vercel/blob@2.3 or later to access private storage functionality.
Uploading Files:
Use the put() or upload() method with access: 'private':
const blob = await put(filename, request.body, {
access: 'private',
});
Retrieving Files:
Stream private files using the get() method:
const { stream, blob } = await get(filename, {
access: 'private',
});
Availability & Pricing
Private storage is available on all Vercel plans and uses standard Vercel Blob pricing. Full documentation is available in the Vercel docs.