Menu

Private storage for Vercel Blob, now available in public beta - Vercel
📰
0

Private storage for Vercel Blob, now available in public beta - Vercel

Vercel News·Agustin Falco·4 days ago
#sdiuJ5po
Reading 0:00
15s threshold

Vercel Blob now supports private storage for sensitive files like contracts, invoices, and internal reports. Private storage requires authentication for all operations, preventing exposure via public URLs. Public storage allows public reads for media assets, while private storage requires authentication. Create a private store via the Storage dashboard or with the CLI: CLI command vercel blob create-store [ name ] --access private When created inside a linked Vercel project, the CLI prompts you to connect the store, automatically adding the BLOB_READ_WRITE_TOKEN environment variable. The SDK uses this variable to authenticate operations in your deployments. SDK installation pnpm add @vercel/blob@2.3 To upload, use put or upload with the access: 'private' option. Upload example import { put } from '@vercel/blob' ; export async function POST ( request : Request ) { // Your auth goes here: await authRequest(req) const filename = request . nextUrl . searchParams .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More