You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 87ad666
Browse filesBrowse the repository at this point in the historyBrowse files
fix: resolve Cache Components prerender errors blocking production build
Dashboard pages are auth-gated and render live data per request, but were
being prerendered into the static shell, tripping Cache Components rules
(Date.now in lib/config, uncached Sanity fetches outside Suspense).
- Refactor dashboard pages to the three-layer pattern: static shell plus a
Suspense-wrapped child that calls connection() before fetching
(config, content, pipeline, review, review/[id], sponsors, videos)
- Wrap the live time-reading components on the dashboard index in Suspense
- Wrap NavHeaderSlot and Footer in the (main) layout in Suspense so the one
dynamic route (/podcast/preview/[token]) can produce a static shell
- Make /api/youtube/rss.xml dynamic via connection() (external fetch + Date)
Co-authored-by: Cursor <cursoragent@cursor.com>
0 commit comments