storage
Unified storage module contract and provider adapters.
Details
- Unified API exposed to generated project: uploadFile, downloadFile, deleteFile, listFiles
- Providers: s3 | r2 | uploadthing | convex | none
- S3 and R2 adapters use AWS S3-compatible APIs via @aws-sdk/client-s3
- R2 runs with S3-compatible endpoint and region=auto configuration
- UploadThing and Convex adapters keep the same unified surface and are intended for app-specific route wiring
- Generated storage adapters use Effect runtime wrappers for env validation and request safety
Implementation Files
src/convex/generators/storage.tssrc/convex/generators/index.ts