Netlify Platform Starter - Next.js
Get started with Next.js and Netlify in seconds.
Read the DocsThe card below is rendered on the server based on the value of process.env.CONTEXT
(docs):
Netlify Context: running in production mode.
This page was statically-generated at build time.
The card content below is fetched by the client-side from /quotes/random
(see file app/quotes/random/route.js
) with a different quote shown on each page load:
“You don't understand! I coulda had class. I coulda been a contender. I could've been somebody, instead of a bum, which is what I am.”
- Marlon Brando as Terry Malloy in “On the Waterfront” (1954)
loaded at 4/25/2025, 4:03:54 PM. Original data source.
On Netlify, Next.js Route Handlers are automatically deployed as Serverless Functions. Alternatively, you can add Serverless Functions to any site regardless of framework, with acccess to the full context data.
And as always with dynamic content, beware of layout shifts & flicker! (here, we aren't...)