Template
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:
co-authored by
Claude Fable 5
parent
f23332e42c
commit
1e58ba4ca4
+2
-2
@@ -13,8 +13,8 @@ import { getStorefrontClient } from "@/lib/storefront";
|
||||
* `references/nextjs.md`). `proxy.ts` cannot inspect the routed response, so
|
||||
* Storefront URL redirects run here, after the framework returns a 404.
|
||||
*
|
||||
* With `cacheComponents: true`, the per-request reads (`headers()` +
|
||||
* `getStorefrontClient()` + `redirect()`) must sit inside a `<Suspense>`
|
||||
* The per-request reads (`headers()` + `getStorefrontClient()` +
|
||||
* `redirect()`) sit inside a `<Suspense>`
|
||||
* boundary. The static 404 shell prerenders; the `<RedirectChecker>` streams
|
||||
* and either `redirect()`s to a matching Shopify URL redirect or renders
|
||||
* nothing (leaving the 404 shell visible).
|
||||
|
||||
Reference in New Issue
Block a user