Ionosphere.tv
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: disable fetch caching so pages render fresh data

The static build was caching empty API responses. Using cache: "no-store"
ensures all server-rendered pages fetch live data from the appview.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+1 -1
+1 -1
apps/ionosphere/src/lib/api.ts
··· 1 1 const API_BASE = process.env.NEXT_PUBLIC_API_URL || "http://localhost:3001"; 2 2 3 3 async function fetchApi<T>(path: string): Promise<T> { 4 - const res = await fetch(`${API_BASE}${path}`, { next: { revalidate: false } }); 4 + const res = await fetch(`${API_BASE}${path}`, { cache: "no-store" }); 5 5 if (!res.ok) throw new Error(`API error: ${res.status} ${path}`); 6 6 return res.json(); 7 7 }