MediaLit dual bucket architecture
What's New
🗂️ MediaLit Dual Bucket Architecture
MediaLit now uses a dual bucket architecture with separate public and private buckets, making it portable across S3-compatible storage providers.
- Works with AWS S3, Cloudflare R2, Backblaze B2, and more
- Reduces vendor lock-in
- Improves portability across hosting environments
What's MediaLit?
MediaLit is our open-source sister service that adds superpowers on top of vanilla S3 storage.
Migration Required
Steps for migrating both MediaLit and CourseLit
- Migrate MediaLit to the dual bucket architecture:
https://docs.medialit.cloud/migrate-to-dual-bucket-architecture#how-to-migrate-to-dual-bucket-architecture - Refresh MediaLit URLs in your CourseLit schools. Following are the steps.
- Create a
.envfile inpackages/scripts
# Replace with appropriate values
DB_CONNECTION_STRING=mongodb://localhost/courselit
MEDIALIT_SERVER=http://localhost:8000
MEDIALIT_APIKEY=apikey- Run the migration script
pnpm --filter @courselit/scripts media:refresh --save- Re-deploy the app