Skip to content

Commit f6081d0

Browse files
Docs IA 2.0: Move ISR page to guides (#79283)
Closes: https://linear.app/vercel/issue/DOC-4670/isr Redirects: vercel/front#45793
1 parent 3fc0d18 commit f6081d0

File tree

19 files changed

+51
-49
lines changed

19 files changed

+51
-49
lines changed

docs/01-app/01-getting-started/08-partial-prerendering.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ To understand Partial Prerendering, it helps to be familiar with the rendering s
3434

3535
### Static Rendering
3636

37-
With Static Rendering, HTML is generated ahead of time—either at build time or through [revalidation](/docs/app/building-your-application/data-fetching/incremental-static-regeneration). The result is cached and shared across users and requests.
37+
With Static Rendering, HTML is generated ahead of time—either at build time or through [revalidation](/docs/app/guides/incremental-static-regeneration). The result is cached and shared across users and requests.
3838

3939
In Partial Prerendering, Next.js prerenders a **static shell** for a route. This can include the layout and any other components that don't depend on request-time data.
4040

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
2-
title: Incremental Static Regeneration (ISR)
2+
title: How to implement Incremental Static Regeneration (ISR)
3+
nav_title: ISR
34
description: Learn how to create or update static pages at runtime with Incremental Static Regeneration.
45
---
56

docs/01-app/02-guides/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ description: Learn how to implement common UI patterns and use cases using Next.
1212

1313
### Revalidating Data
1414

15-
- [Using ISR to revalidate data after a certain time](/docs/app/building-your-application/data-fetching/incremental-static-regeneration#time-based-revalidation)
16-
- [Using ISR to revalidate data on-demand](/docs/app/building-your-application/data-fetching/incremental-static-regeneration#on-demand-revalidation-with-revalidatepath)
15+
- [Using ISR to revalidate data after a certain time](/docs/app/guides/incremental-static-regeneration#time-based-revalidation)
16+
- [Using ISR to revalidate data on-demand](/docs/app/guides/incremental-static-regeneration#on-demand-revalidation-with-revalidatepath)
1717

1818
### Forms
1919

docs/01-app/02-guides/production-checklist.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ While building your application, we recommend using the following features to en
7474

7575
- **[API Routes](/docs/pages/building-your-application/routing/api-routes):** Use Route Handlers to access your backend resources, and prevent sensitive secrets from being exposed to the client.
7676
- **[Data Caching](/docs/pages/building-your-application/data-fetching/get-static-props):** Verify whether your data requests are being cached or not, and opt into caching, where appropriate. Ensure requests that don't use `getStaticProps` are cached where appropriate.
77-
- **[Incremental Static Regeneration](/docs/pages/building-your-application/data-fetching/incremental-static-regeneration):** Use Incremental Static Regeneration to update static pages after they've been built, without rebuilding your entire site.
77+
- **[Incremental Static Regeneration](/docs/pages/guides/incremental-static-regeneration):** Use Incremental Static Regeneration to update static pages after they've been built, without rebuilding your entire site.
7878
- **[Static Images](/docs/pages/api-reference/file-conventions/public-folder):** Use the `public` directory to automatically cache your application's static assets, e.g. images.
7979

8080
</PagesOnly>

docs/01-app/02-guides/self-hosting.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ This allows you to use a singular Docker image that can be promoted through mult
8585

8686
Next.js can cache responses, generated static pages, build outputs, and other static assets like images, fonts, and scripts.
8787

88-
Caching and revalidating pages (with [Incremental Static Regeneration](/docs/app/building-your-application/data-fetching/incremental-static-regeneration)) use the **same shared cache**. By default, this cache is stored to the filesystem (on disk) on your Next.js server. **This works automatically when self-hosting** using both the Pages and App Router.
88+
Caching and revalidating pages (with [Incremental Static Regeneration](/docs/app/guides/incremental-static-regeneration)) use the **same shared cache**. By default, this cache is stored to the filesystem (on disk) on your Next.js server. **This works automatically when self-hosting** using both the Pages and App Router.
8989

9090
You can configure the Next.js cache location if you want to persist cached pages and data to durable storage, or share the cache across multiple containers or instances of your Next.js application.
9191

docs/01-app/02-guides/static-exports.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ Features that require a Node.js server, or dynamic logic that cannot be computed
285285
- [Redirects](/docs/app/api-reference/config/next-config-js/redirects)
286286
- [Headers](/docs/app/api-reference/config/next-config-js/headers)
287287
- [Middleware](/docs/app/building-your-application/routing/middleware)
288-
- [Incremental Static Regeneration](/docs/app/building-your-application/data-fetching/incremental-static-regeneration)
288+
- [Incremental Static Regeneration](/docs/app/guides/incremental-static-regeneration)
289289
- [Image Optimization](/docs/app/api-reference/components/image) with the default `loader`
290290
- [Draft Mode](/docs/app/guides/draft-mode)
291291
- [Server Actions](/docs/app/building-your-application/data-fetching/server-actions-and-mutations)
@@ -307,7 +307,7 @@ export const dynamic = 'error'
307307
- [Redirects](/docs/pages/api-reference/config/next-config-js/redirects)
308308
- [Headers](/docs/pages/api-reference/config/next-config-js/headers)
309309
- [Middleware](/docs/pages/building-your-application/routing/middleware)
310-
- [Incremental Static Regeneration](/docs/pages/building-your-application/data-fetching/incremental-static-regeneration)
310+
- [Incremental Static Regeneration](/docs/pages/guides/incremental-static-regeneration)
311311
- [Image Optimization](/docs/pages/api-reference/components/image) with the default `loader`
312312
- [Draft Mode](/docs/pages/guides/draft-mode)
313313
- [`getStaticPaths` with `fallback: true`](/docs/pages/api-reference/functions/get-static-paths#fallback-true)

docs/01-app/03-building-your-application/01-routing/13-route-handlers.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ The following examples show how to combine Route Handlers with other Next.js API
127127

128128
### Revalidating Cached Data
129129

130-
You can [revalidate cached data](/docs/app/building-your-application/data-fetching/incremental-static-regeneration) using Incremental Static Regeneration (ISR):
130+
You can [revalidate cached data](/docs/app/guides/incremental-static-regeneration) using Incremental Static Regeneration (ISR):
131131

132132
```ts filename="app/posts/route.ts" switcher
133133
export const revalidate = 60

docs/01-app/03-building-your-application/02-data-fetching/01-fetching.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export default async function Page() {
8787
}
8888
```
8989

90-
If you are not using any [Dynamic APIs](/docs/app/getting-started/partial-prerendering#dynamic-rendering) anywhere else in this route, it will be prerendered during `next build` to a static page. The data can then be updated using [Incremental Static Regeneration](/docs/app/building-your-application/data-fetching/incremental-static-regeneration).
90+
If you are not using any [Dynamic APIs](/docs/app/getting-started/partial-prerendering#dynamic-rendering) anywhere else in this route, it will be prerendered during `next build` to a static page. The data can then be updated using [Incremental Static Regeneration](/docs/app/guides/incremental-static-regeneration).
9191

9292
To prevent the page from prerendering, you can add the following to your file:
9393

@@ -131,7 +131,7 @@ export default async function Page() {
131131
}
132132
```
133133

134-
If you are not using any [Dynamic APIs](/docs/app/getting-started/partial-prerendering#dynamic-rendering) anywhere else in this route, it will be prerendered during `next build` to a static page. The data can then be updated using [Incremental Static Regeneration](/docs/app/building-your-application/data-fetching/incremental-static-regeneration).
134+
If you are not using any [Dynamic APIs](/docs/app/getting-started/partial-prerendering#dynamic-rendering) anywhere else in this route, it will be prerendered during `next build` to a static page. The data can then be updated using [Incremental Static Regeneration](/docs/app/guides/incremental-static-regeneration).
135135

136136
To prevent the page from prerendering, you can add the following to your file:
137137

@@ -259,7 +259,7 @@ export default async function Page() {
259259
}
260260
```
261261

262-
This example caches the result of the database query for 1 hour (3600 seconds). It also adds the cache tag `posts` which can then be invalidated with [Incremental Static Regeneration](/docs/app/building-your-application/data-fetching/incremental-static-regeneration).
262+
This example caches the result of the database query for 1 hour (3600 seconds). It also adds the cache tag `posts` which can then be invalidated with [Incremental Static Regeneration](/docs/app/guides/incremental-static-regeneration).
263263

264264
### Reusing data across multiple functions
265265

@@ -390,7 +390,7 @@ export const getPost = cache(async (id) => {
390390

391391
### Revalidating cached data
392392

393-
Learn more about revalidating cached data with [Incremental Static Regeneration](/docs/app/building-your-application/data-fetching/incremental-static-regeneration).
393+
Learn more about revalidating cached data with [Incremental Static Regeneration](/docs/app/guides/incremental-static-regeneration).
394394

395395
## Patterns
396396

docs/01-app/05-api-reference/05-config/01-next-config-js/assetPrefix.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,6 @@ While `assetPrefix` covers requests to `_next/static`, it does not influence the
7171

7272
- Files in the [public](/docs/pages/api-reference/file-conventions/public-folder) folder; if you want to serve those assets over a CDN, you'll have to introduce the prefix yourself
7373
- `/_next/data/` requests for `getServerSideProps` pages. These requests will always be made against the main domain since they're not static.
74-
- `/_next/data/` requests for `getStaticProps` pages. These requests will always be made against the main domain to support [Incremental Static Generation](/docs/pages/building-your-application/data-fetching/incremental-static-regeneration), even if you're not using it (for consistency).
74+
- `/_next/data/` requests for `getStaticProps` pages. These requests will always be made against the main domain to support [Incremental Static Generation](/docs/pages/guides/incremental-static-regeneration), even if you're not using it (for consistency).
7575

7676
</PagesOnly>

docs/01-app/05-api-reference/05-config/01-next-config-js/incrementalCacheHandlerPath.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Returns `Promise<void>`.
4343
| --------- | ---------------------- | ----------------------------- |
4444
| `tag` | `string` or `string[]` | The cache tags to revalidate. |
4545

46-
Returns `Promise<void>`. Learn more about [revalidating data](/docs/app/building-your-application/data-fetching/incremental-static-regeneration) or the [`revalidateTag()`](/docs/app/api-reference/functions/revalidateTag) function.
46+
Returns `Promise<void>`. Learn more about [revalidating data](/docs/app/guides/incremental-static-regeneration) or the [`revalidateTag()`](/docs/app/api-reference/functions/revalidateTag) function.
4747

4848
### `resetRequestCache()`
4949

0 commit comments

Comments
 (0)