Identifies Admin users and tracks sign-in flows in PostHog
Sanity Storage
Stores Payload media in Sanity with on-demand image transforms and CDN delivery
Installation
pnpm add @klnap/payload-storage-sanity About
Sanity Storage keeps Payload media files in Sanity and serves them from Sanity's global Asset CDN. Payload still owns the media collection, so access control, hooks and the admin screens work as before. Editors upload and manage files in Payload without opening Sanity Studio.
Frontends request the width they need, and Sanity generates and caches that size on the first request, so you do not pre-generate image sizes. Each media item returns a flat record with the CDN URL, dimensions, focal point, localized alt text and a low-quality placeholder. Files are publicly reachable through the CDN, so this does not suit private media.
Package info
- Package name
@klnap/payload-storage-sanity- Latest version
0.3.4- Unpacked size
- 702 kB
- License
- MIT
- Weekly downloads
- 1.2k
- Last publish
- Nov 28, 2026
More from klnap
View profileSlug field that fills itself from another field, with optional Auto/Manual mode
Uses prefixed UUIDv7 TypeIDs as native Payload document IDs per collection
Creates redirect rules automatically when published URLs change
Event-driven Next.js cache invalidation triggered by Payload content changes
Similar adapters
More in StorageStores Payload uploads in Amazon S3 buckets with optional presigned downloads
Routes Payload upload collections to a custom or third-party cloud storage adapter
Stores Payload uploads in Azure Blob Storage, with optional direct browser uploads
Stores Payload uploads in UploadThing file hosting
Stores collection uploads in Vercel Blob Storage instead of local disk
Stores Payload uploads in Google Cloud Storage buckets, with optional direct browser uploads