Improve video fetching and counting for better platform performance
Update server-side logic to optimize video retrieval from Bunny.net CDN by adjusting batch fetching and simplifying pagination and count mechanisms for improved efficiency. Replit-Commit-Author: Agent Replit-Commit-Session-Id: d7424866-83d1-4486-a212-ac12b4c7becf Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/d7424866-83d1-4486-a212-ac12b4c7becf/HJnSzeY
This commit is contained in:
@@ -44,6 +44,7 @@ export default function Home() {
|
||||
// Update videos when new data comes in
|
||||
useEffect(() => {
|
||||
if (videosResponse) {
|
||||
console.log('Videos response:', videosResponse);
|
||||
if (offset === 0) {
|
||||
setAllVideos(videosResponse.videos);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user