diff --git a/attached_assets/generated_images/go4.video_PWA_app_icon_3f3a4445.png b/attached_assets/generated_images/go4.video_PWA_app_icon_3f3a4445.png new file mode 100644 index 0000000..077f170 Binary files /dev/null and b/attached_assets/generated_images/go4.video_PWA_app_icon_3f3a4445.png differ diff --git a/client/public/app-icon.png b/client/public/app-icon.png new file mode 100644 index 0000000..077f170 Binary files /dev/null and b/client/public/app-icon.png differ diff --git a/client/public/manifest.json b/client/public/manifest.json index 4f70c51..c7c863a 100644 --- a/client/public/manifest.json +++ b/client/public/manifest.json @@ -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"], diff --git a/client/src/pages/VideoPage.tsx b/client/src/pages/VideoPage.tsx index 7a18e94..120ed36 100644 --- a/client/src/pages/VideoPage.tsx +++ b/client/src/pages/VideoPage.tsx @@ -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) diff --git a/client/src/pages/home.tsx b/client/src/pages/home.tsx index 27f263a..50f5707 100644 --- a/client/src/pages/home.tsx +++ b/client/src/pages/home.tsx @@ -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 diff --git a/server/routes.ts b/server/routes.ts index 82b8a22..0f9fb5c 100644 --- a/server/routes.ts +++ b/server/routes.ts @@ -825,11 +825,8 @@ export async function registerRoutes(app: Express): Promise { - - - - - ${size >= 120 ? `go4` : ''} + + `; // Pretvorimo SVG v PNG z Sharp @@ -853,8 +850,8 @@ export async function registerRoutes(app: Express): Promise { - - + + `; res.setHeader('Content-Type', 'image/svg+xml');