Remove next/cache usage (use cache, cacheLife, cacheTag, cacheComponents)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F22Ms5Cxam5UHyxaCrtZzu
This commit is contained in:
Rami Bitar
2026-07-29 11:26:23 -04:00
co-authored by Claude Fable 5
parent f23332e42c
commit 1e58ba4ca4
15 changed files with 24 additions and 81 deletions
+2 -2
View File
@@ -8,8 +8,8 @@ import { SITE_ORIGIN } from "@/lib/site";
import { AppShell } from "./app-shell";
/**
* Root layout (engineering.md F1, F4, F7, F10). With `cacheComponents: true`,
* the layout is a **static shell** — it prerenders the `<html>`/`<body>` +
* Root layout (engineering.md F1, F4, F7, F10). The layout is a
* **static shell** — it prerenders the `<html>`/`<body>` +
* announcement bar, then wraps the per-request (dynamic) `AppShell` (cart seed
* + analytics shop + chrome) in `<Suspense>` so the dynamic parts stream while
* the static shell serves immediately. `AppShell` calls `connection()` to opt