Enhance video platform with real-time updates and refined visual elements
Improve video view count refresh rates and update PWA manifest and app icon visuals. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 2cd2c0bc-434c-4bc9-ad3f-b99d3897a0d1 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/2cd2c0bc-434c-4bc9-ad3f-b99d3897a0d1/3dnI7Tc
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 500 KiB |
@@ -6,8 +6,10 @@
|
||||
"background_color": "#2D1B69",
|
||||
"display": "standalone",
|
||||
"orientation": "portrait-primary",
|
||||
"start_url": "/",
|
||||
"start_url": "/?utm_source=pwa",
|
||||
"scope": "/",
|
||||
"cache": "no-cache",
|
||||
"fetch_scheme": "https",
|
||||
"lang": "en",
|
||||
"dir": "ltr",
|
||||
"categories": ["entertainment", "multimedia"],
|
||||
|
||||
@@ -75,6 +75,10 @@ export default function VideoPage() {
|
||||
enabled: !!videoId,
|
||||
retry: 3,
|
||||
retryDelay: 1000,
|
||||
// Real-time refresh for view counts - refresh every 30 seconds
|
||||
refetchInterval: 30000,
|
||||
refetchOnWindowFocus: true,
|
||||
refetchOnReconnect: true,
|
||||
});
|
||||
|
||||
// Fetch recommended videos (excluding current video)
|
||||
|
||||
@@ -42,8 +42,10 @@ export default function Home() {
|
||||
},
|
||||
staleTime: 5 * 60 * 1000,
|
||||
gcTime: 10 * 60 * 1000,
|
||||
refetchOnWindowFocus: false,
|
||||
refetchOnReconnect: false
|
||||
refetchOnWindowFocus: true,
|
||||
refetchOnReconnect: true,
|
||||
// Real-time refresh for view counts - refresh every 30 seconds
|
||||
refetchInterval: 30000
|
||||
});
|
||||
|
||||
// Update videos when new data comes in
|
||||
|
||||
Reference in New Issue
Block a user