nextjs-rendering
Installation
SKILL.md
Rendering Strategies (App Router)
Priority: P0 (CRITICAL)
Choose rendering strategy based on data freshness and scaling needs. See Strategy Matrix.
Workflow: Choose Rendering Strategy
- Determine data freshness — Static content? Use SSG. Periodic updates? Use ISR. Personalized? Use SSR.
- Configure fetch —
force-cachefor SSG,revalidate: Nfor ISR,no-storefor SSR. - Add Suspense for streaming — Wrap slow components in
<Suspense>with fallback. - Enable PPR if hybrid — Set
ppr: trueinnext.config.jsfor static shell + dynamic regions.