Local Mode (default)
Place your files in apps/api/public/
Production Warning: Local mode is NOT recommended for production as files in the public/ folder will be overwritten on each deployment/build. For production environments, always use cloud storage (S3 or R2).
Cloud Mode
Copy and configure:
cp apps/api/.env.example apps/api/.env
Cloudflare R2
STORAGE_PROVIDER=cloudflare
STORAGE_REGION=auto
STORAGE_ACCESS_KEY_ID=your_r2_access_key
STORAGE_SECRET_ACCESS_KEY=your_r2_secret_key
STORAGE_BUCKET_NAME=your-bucket-name
STORAGE_ENDPOINT=https://your-account-id.r2.cloudflarestorage.com
STORAGE_PUBLIC_URL=https://your-custom-domain.com
AWS S3
STORAGE_PROVIDER=aws
STORAGE_REGION=us-east-1
STORAGE_ACCESS_KEY_ID=your_aws_access_key
STORAGE_SECRET_ACCESS_KEY=your_aws_secret_key
STORAGE_BUCKET_NAME=your-bucket-name
STORAGE_PUBLIC_URL=https://your-bucket-name.s3.us-east-1.amazonaws.com