This project now uses Lighthouse for IPFS storage instead of Supabase storage buckets for avatar uploads.
Add the following environment variables to your .env.local file:
# Lighthouse IPFS API Key
NEXT_PUBLIC_LIGHTHOUSE_API_KEY=your_lighthouse_api_key_here
# Optional: Custom IPFS Gateway (defaults to Lighthouse gateway)
NEXT_PUBLIC_IPFS_GATEWAY=https://gateway.lighthouse.storage/ipfs- Go to Lighthouse Storage
- Sign up for an account
- Navigate to the API Keys section
- Create a new API key
- Copy the API key and add it to your environment variables
- Avatar uploads are now stored on IPFS via Lighthouse
- The IPFS hash/URL is stored in the database
avatar_urlfield - Images are permanently stored and accessible via IPFS gateways
- No need for Supabase storage buckets
- Avatar images: Maximum 2MB per file
- Supported formats: JPEG, PNG, GIF, WebP
- Storage efficiency: With 5GB total storage, this allows for 2,500+ user avatars
- Quality: 2MB provides high-quality images (400x400 to 800x800 pixels) suitable for all display sizes
- Decentralized: Images are stored on IPFS, not centralized servers
- Permanent: Once uploaded, images are permanently available
- Cost-effective: One-time payment for permanent storage
- No bucket management: No need to create or manage storage buckets
- Storage optimized: 2MB limit balances quality with storage efficiency
- Existing Supabase storage avatars will continue to work
- New uploads will use IPFS
- The
avatar_urlfield in the database now stores full IPFS URLs instead of Supabase storage paths