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
+1 -2
View File
@@ -37,8 +37,7 @@ type AccountPageProps = {
/**
* `/account` — core Customer Accounts surface (name + email only).
*
* No `export const dynamic` / `export const fetchCache`: under
* `cacheComponents: true`, `force-dynamic` is not allowed. The page relies on
* No `export const dynamic` / `export const fetchCache`: the page relies on
* the `AppShell` dynamic context (`await connection()` in the root layout's
* shell), which opts the whole subtree into dynamic rendering — any
* `headers()`/`cookies()` read inside (e.g. `getCustomerAccessToken()` →