Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Next.js demo pairing static site generation via getStaticProps with Preview Mode, so authorized editors can view draft CMS content on demand.

Open-source AI chatbot template built with Next.js, the AI SDK by Vercel, and Groq for streaming chat responses.

Minimal Shopify Hydrogen v2 headless storefront boilerplate built on Remix, ready to deploy to Vercel with zero configuration.

A Turborepo monorepo starter combining a Gatsby site, a Next.js docs app, and a shared React component library in TypeScript.

Minimal full-stack starter pairing the Next.js 16 App Router with MongoDB Atlas, TypeScript, Tailwind CSS, shadcn/ui and one-click Vercel deploy.

Starter that installs an Elysia API with Bun, previews it locally through the Vercel CLI on port 3000, and deploys it to Vercel.
Next.js Preview Mode Demo is a Next.js example application that pairs build-time static site generation with Preview Mode, an on-demand rendering path that lets authorized users bypass the prerendered page and see draft content live.
Next.js Preview Mode Demo is a demo project focused on Static Site Generation (SSG) in Next.js, driven by the getStaticProps data-fetching function, and extended with Preview Mode. It runs on Next.js, described in the project as the first hybrid framework, and ships as a live deployment on Vercel at next-preview.vercel.app. The demo was published alongside the Next.js 9.3 release, and it links directly to the Next.js 9.3 blog post and the official Preview Mode documentation for background reading. Its input is a statically prerendered page; its output is either that cached static page for regular visitors or a freshly rendered, on-demand page for authorized users in preview.
getStaticProps — the application deliberately focuses on Static Generation rather than mixing in other data-fetching strategies, keeping the example easy to read.getStaticProps together with Preview Mode before adding it to a production site.Pages in the demo are prerendered at build time with getStaticProps. When an authorized user enables Preview Mode, the request for that route skips the statically prerendered result and Next.js renders the page on demand instead, which is what allows unpublished CMS content to appear.
Preview Mode uses Next.js' on-demand rendering capabilities to bypass a statically prerendered page and render that page on demand for authorized users only. It is documented as an advanced feature and was highlighted in the Next.js 9.3 release notes.
No. The application solely focuses on Static Generation through getStaticProps. On-demand rendering is used only as the Preview Mode mechanism that authorized users trigger, while regular traffic continues to receive the statically generated page.
It is aimed at people who need to see content before it goes live, most notably content editors reviewing real-time draft content from a CMS. Access is limited to authorized users rather than the general public.
A live instance is hosted on Vercel and linked from the README as the place to take Preview Mode for a spin. The same README links to the Next.js 9.3 blog post and the official Preview Mode documentation.
