diff --git a/.replit b/.replit index d2b4742..e1a1709 100644 --- a/.replit +++ b/.replit @@ -46,6 +46,10 @@ externalPort = 6000 localPort = 43245 externalPort = 3001 +[[ports]] +localPort = 44509 +externalPort = 8000 + [[ports]] localPort = 46681 externalPort = 5173 diff --git a/replit.md b/replit.md index d067604..f37ed4c 100644 --- a/replit.md +++ b/replit.md @@ -24,12 +24,16 @@ The backend runs on **Node.js** with **Express.js**, fully implemented in **Type ### Media Processing Pipeline -The platform leverages **Cloudinary** for cloud-based image and video storage and transformation. Original files are uploaded to Cloudinary, which then automatically generates transformation URLs for various platform-specific formats: -- **Facebook Feed**: 1080x1080px with intelligent center crop (`crop: fill`) - square format, no borders -- **Instagram Feed**: 1080x1080px with padding (`crop: pad`) - maintains aspect ratio with auto background +The platform leverages **Cloudinary** for cloud-based image and video storage and transformation. Original files are uploaded to Cloudinary and stored in the database. + +**Publishing Strategy**: All publications to Facebook/Instagram use the **original image URL** - the platforms handle cropping and formatting automatically based on the post type (feed/story/carousel). + +**Transformations for Preview Only**: Cloudinary generates transformation URLs for UI preview purposes only: +- **Facebook Landscape**: 1200x630px with intelligent center crop (`crop: fill`) - landscape format +- **Facebook Feed / Instagram Feed**: 1080x1080px with intelligent center crop (`crop: fill`) - square format - **Instagram Story**: 1080x1920px with padding (`crop: pad`) - vertical format -These public IDs and transformation URLs are stored in the database, allowing optimized images to be served via Cloudinary's CDN. +These transformation URLs are stored in the database (`facebookLandscapeUrl`, `facebookFeedUrl`, `instagramFeedUrl`, `instagramStoryUrl`) and displayed in the media library for visual preview, but are NOT used when publishing to social media platforms. ### Authentication & Authorization