Partial Prerendering

R
Renaudil y a 2 jours
0

Description

Demo of Partial Prerendering in Next.js.

npx boilerapp partial-prerendering-nextjs

文档

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. 5c:T99b,

Prix

Gratuit

FREE

评论 (0)

常见问题

常见问题解答 (FAQ)

有问题?我们有答案。如果您找不到想要的答案,请随时联络我们。

Boilerapp 是一个专门用于分享 Boilerplates、入门套件(Starter Kits)和项目模版的开发者社区平台。我们的目标很简单:为您节省初始配置(Setup)的时间,让您可以专注于真正重要的代码。无论您是在寻找简单的代码库还是完整的 SaaS 项目,都能在这里找到。

还有其他问题?

我们的团队随时为您提供帮助。联络我们,我们将尽快回复。