Lineup Legends
Playerscreate a lineupExploreContactSign upSign in

Join Lineup Legends – create, share, and dominate with your ultimate fantasy basketball lineups. Your journey as a top fantasy GM starts here!

Located in Northern California

Cell: (707) 724-1815

Email: cassius.reynolds.dev@gmail.com

Contact Us →

Developed by

Cassius Reynolds

Terms of ServicePrivacy Policy
© 2026 Lineup Legends. All rights reserved.
All Topics
🖼️Backend ArchitectureComing Soon

Image Pipeline

S3 uploads, CloudFront CDN delivery, and Next.js image optimization.

Video coming soon

Add a YouTube video ID to the topics config

Documentation

Overview

Images flow through a three-stage pipeline: upload to S3, serve via CloudFront CDN, and optimize with Next.js Image component.

Upload Flow

  1. Client sends image to /api/upload route
  2. Server validates: auth, file type (JPEG/PNG/WebP/GIF), max 5MB
  3. Image uploaded to S3 bucket at profiles/{userId}/{type}-{timestamp}.{ext}
  4. CloudFront URL returned to client

Image Types

  • Profile images — user avatars
  • Banner images — profile page banners
  • Player headshots — NBA player photos (CDN-hosted)

Optimization

  • next/image component with fill mode and sizes attribute
  • Remote patterns configured for CDN domains
  • SVG data URL fallbacks rendered with unoptimized flag

Technical Details

<!-- Add details about S3 bucket policy, CloudFront distribution setup, etc. -->

Content coming soon — add your video and detailed writeup here.

Browse All Topics