Unverified Commit 400b82cb authored by Joseph's avatar Joseph Committed by GitHub

docs: remove experimental_ppr route segment config (#85188)

Removed on v16
parent f4932f35
...@@ -11,33 +11,18 @@ description: Learn about how to configure options for Next.js route segments. ...@@ -11,33 +11,18 @@ description: Learn about how to configure options for Next.js route segments.
The Route Segment options allows you to configure the behavior of a [Page](/docs/app/api-reference/file-conventions/layout), [Layout](/docs/app/api-reference/file-conventions/layout), or [Route Handler](/docs/app/api-reference/file-conventions/route) by directly exporting the following variables: The Route Segment options allows you to configure the behavior of a [Page](/docs/app/api-reference/file-conventions/layout), [Layout](/docs/app/api-reference/file-conventions/layout), or [Route Handler](/docs/app/api-reference/file-conventions/route) by directly exporting the following variables:
| Option | Type | Default | | Option | Type | Default |
| --------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | -------------------------- | | ------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | -------------------------- |
| [`experimental_ppr`](#experimental_ppr) | `boolean` | | [`dynamic`](#dynamic) | `'auto' \| 'force-dynamic' \| 'error' \| 'force-static'` | `'auto'` |
| [`dynamic`](#dynamic) | `'auto' \| 'force-dynamic' \| 'error' \| 'force-static'` | `'auto'` | | [`dynamicParams`](#dynamicparams) | `boolean` | `true` |
| [`dynamicParams`](#dynamicparams) | `boolean` | `true` | | [`revalidate`](#revalidate) | `false \| 0 \| number` | `false` |
| [`revalidate`](#revalidate) | `false \| 0 \| number` | `false` | | [`fetchCache`](#fetchcache) | `'auto' \| 'default-cache' \| 'only-cache' \| 'force-cache' \| 'force-no-store' \| 'default-no-store' \| 'only-no-store'` | `'auto'` |
| [`fetchCache`](#fetchcache) | `'auto' \| 'default-cache' \| 'only-cache' \| 'force-cache' \| 'force-no-store' \| 'default-no-store' \| 'only-no-store'` | `'auto'` | | [`runtime`](#runtime) | `'nodejs' \| 'edge'` | `'nodejs'` |
| [`runtime`](#runtime) | `'nodejs' \| 'edge'` | `'nodejs'` | | [`preferredRegion`](#preferredregion) | `'auto' \| 'global' \| 'home' \| string \| string[]` | `'auto'` |
| [`preferredRegion`](#preferredregion) | `'auto' \| 'global' \| 'home' \| string \| string[]` | `'auto'` | | [`maxDuration`](#maxduration) | `number` | Set by deployment platform |
| [`maxDuration`](#maxduration) | `number` | Set by deployment platform |
## Options ## Options
### `experimental_ppr`
Enable [Partial Prerendering (PPR)](/docs/app/getting-started/partial-prerendering) for a layout or page.
```tsx filename="layout.tsx | page.tsx " switcher
export const experimental_ppr = true
// true | false
```
```jsx filename="layout.js | page.js " switcher
export const experimental_ppr = true
// true | false
```
### `dynamic` ### `dynamic`
Change the dynamic behavior of a layout or page to fully static or fully dynamic. Change the dynamic behavior of a layout or page to fully static or fully dynamic.
...@@ -225,4 +210,5 @@ See the [API reference](/docs/app/api-reference/functions/generate-static-params ...@@ -225,4 +210,5 @@ See the [API reference](/docs/app/api-reference/functions/generate-static-params
| Version | | | Version | |
| ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `v16.0.0` | `export const experimental_ppr = true` removed. A [codemod](/docs/app/guides/upgrading/codemods#remove-experimental_ppr-route-segment-config-from-app-router-pages-and-layouts) is available. |
| `v15.0.0-RC` | `export const runtime = "experimental-edge"` deprecated. A [codemod](/docs/app/guides/upgrading/codemods#transform-app-router-route-segment-config-runtime-value-from-experimental-edge-to-edge) is available. | | `v15.0.0-RC` | `export const runtime = "experimental-edge"` deprecated. A [codemod](/docs/app/guides/upgrading/codemods#transform-app-router-route-segment-config-runtime-value-from-experimental-edge-to-edge) is available. |
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment