A framework option for content-led websites and React applications.
The short answer
When does Next.js fit a website or app?
It fits when public pages and signed-in screens can share one codebase. The useful question is which content can be prepared ahead of time and which depends on the current visitor. We decide that per route.
A concept of cached public reads vs. scoped form writes.
From
Your content source or database
Reads
To
The visitor's browser
Writes
Comes in
Does the work
Next.js App Router
Comes out
Checked on the way
Source: Caching in Next.js (Vercel)Checked
Source: Caching in Next.js (Vercel)Checked
Source: Caching in Next.js (Vercel)Checked
export const revalidate = 300; // Revalidate cached public catalog every 5 minutes
export default async function CatalogPage() {
const items = await fetchCatalog({ cache: "force-cache" });
return <CatalogList items={items} />;
}Facts reviewed as of
Tell us what visitors need to do and who edits the content.