Skip to content

guirip/next-partial-prerendering

This branch is 2 commits behind vercel-labs/next-partial-prerendering:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6f3cc61 · Oct 30, 2024

History

42 Commits
Jul 19, 2024
Oct 30, 2024
Jul 19, 2024
Nov 8, 2023
Nov 8, 2023
Nov 8, 2023
Jul 19, 2024
Dec 22, 2023
Nov 8, 2023
Nov 9, 2023
Jul 15, 2024
Jul 19, 2024
Nov 8, 2023
Nov 8, 2023
Nov 8, 2023

Repository files navigation

Next.js Partial Prerendering

This is a demo of Next.js using Partial Prerendering.

This template uses the new Next.js App Router. This includes support for enhanced layouts, colocation of components, tests, and styles, component-level data fetching, and more.

It also uses the experimental Partial Prerendering feature available in Next.js 14. Partial Prerendering combines ultra-quick static edge delivery with fully dynamic capabilities and we believe it has the potential to become the default rendering model for web applications, bringing together the best of static site generation and dynamic delivery.

⚠️ Please note that PPR is an experimental technology that is not recommended for production. You may run into some DX issues, especially on larger code bases.

How it works

The index route / uses Partial Prerendering through:

  1. Enabling the experimental flag in next.config.js.
experimental: {
    ppr: true,
},
  1. Using <Suspense /> to wrap Dynamic content.

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.7%
  • JavaScript 0.3%