Skip to content

Commit 8a1c947

Browse files
moleboxstyfleijjk
authored
Changed data fetching file name to overview to fix meta data title (#33232)
* Changed data fetching file name to overview to fix meta data title * Update docs/api-reference/data-fetching/get-server-side-props.md Co-authored-by: Steven <steven@ceriously.com> * Update manifest and check Co-authored-by: Steven <steven@ceriously.com> Co-authored-by: JJ Kasper <jj@jjsweb.site>
1 parent 7e95e30 commit 8a1c947

File tree

17 files changed

+29
-21
lines changed

17 files changed

+29
-21
lines changed

docs/advanced-features/custom-app.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ export default MyApp
3838

3939
The `Component` prop is the active `page`, so whenever you navigate between routes, `Component` will change to the new `page`. Therefore, any props you send to `Component` will be received by the `page`.
4040

41-
`pageProps` is an object with the initial props that were preloaded for your page by one of our [data fetching methods](/docs/basic-features/data-fetching/index.md), otherwise it's an empty object.
41+
`pageProps` is an object with the initial props that were preloaded for your page by one of our [data fetching methods](/docs/basic-features/data-fetching/overview.md), otherwise it's an empty object.
4242

4343
### Caveats
4444

4545
- If your app is running and you added a custom `App`, you'll need to restart the development server. Only required if `pages/_app.js` didn't exist before.
4646
- Adding a custom [`getInitialProps`](/docs/api-reference/data-fetching/get-initial-props.md) in your `App` will disable [Automatic Static Optimization](/docs/advanced-features/automatic-static-optimization.md) in pages without [Static Generation](/docs/basic-features/data-fetching/get-static-props.md).
4747
- When you add `getInitialProps` in your custom app, you must `import App from "next/app"`, call `App.getInitialProps(appContext)` inside `getInitialProps` and merge the returned object into the return value.
48-
- `App` currently does not support Next.js [Data Fetching methods](/docs/basic-features/data-fetching/index.md) like [`getStaticProps`](/docs/basic-features/data-fetching/get-static-props.md) or [`getServerSideProps`](/docs/basic-features/data-fetching/get-server-side-props.md).
48+
- `App` currently does not support Next.js [Data Fetching methods](/docs/basic-features/data-fetching/overview.md) like [`getStaticProps`](/docs/basic-features/data-fetching/get-static-props.md) or [`getServerSideProps`](/docs/basic-features/data-fetching/get-server-side-props.md).
4949

5050
### TypeScript
5151

docs/advanced-features/custom-document.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ The `ctx` object is equivalent to the one received in [`getInitialProps`](/docs/
5454
- `Document` is only rendered in the server, event handlers like `onClick` won't work.
5555
- React components outside of `<Main />` will not be initialized by the browser. Do _not_ add application logic here or custom CSS (like `styled-jsx`). If you need shared components in all your pages (like a menu or a toolbar), take a look at the [`App`](/docs/advanced-features/custom-app.md) component instead.
5656
- `Document`'s `getInitialProps` function is not called during client-side transitions, nor when a page is [statically optimized](/docs/advanced-features/automatic-static-optimization.md).
57-
- `Document` currently does not support Next.js [Data Fetching methods](/docs/basic-features/data-fetching/index.md) like [`getStaticProps`](/docs/basic-features/data-fetching/get-static-props.md) or [`getServerSideProps`](/docs/basic-features/data-fetching/get-server-side-props.md).
57+
- `Document` currently does not support Next.js [Data Fetching methods](/docs/basic-features/data-fetching/overview.md) like [`getStaticProps`](/docs/basic-features/data-fetching/get-static-props.md) or [`getServerSideProps`](/docs/basic-features/data-fetching/get-server-side-props.md).
5858

5959
## Customizing `renderPage`
6060

docs/advanced-features/preview-mode.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ description: Next.js has the preview mode for statically generated pages. You ca
2727
</ul>
2828
</details>
2929

30-
In the [Pages documentation](/docs/basic-features/pages.md) and the [Data Fetching documentation](/docs/basic-features/data-fetching/index.md), we talked about how to pre-render a page at build time (**Static Generation**) using `getStaticProps` and `getStaticPaths`.
30+
In the [Pages documentation](/docs/basic-features/pages.md) and the [Data Fetching documentation](/docs/basic-features/data-fetching/overview.md), we talked about how to pre-render a page at build time (**Static Generation**) using `getStaticProps` and `getStaticPaths`.
3131

3232
Static Generation is useful when your pages fetch data from a headless CMS. However, it’s not ideal when you’re writing a draft on your headless CMS and want to **preview** the draft immediately on your page. You’d want Next.js to render these pages at **request time** instead of build time and fetch the draft content instead of the published content. You’d want Next.js to bypass Static Generation only for this specific case.
3333

@@ -230,7 +230,7 @@ This ensures that the bypass cookie can’t be guessed.
230230
The following pages might also be useful.
231231

232232
<div class="card">
233-
<a href="/docs/basic-features/data-fetching/index.md">
233+
<a href="/docs/basic-features/data-fetching/overview.md">
234234
<b>Data Fetching:</b>
235235
<small>Learn more about data fetching in Next.js.</small>
236236
</a>

docs/api-reference/data-fetching/get-initial-props.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export default class Page extends React.Component<Props> {
119119
For more information on what to do next, we recommend the following sections:
120120

121121
<div class="card">
122-
<a href="/docs/basic-features/data-fetching/index.md">
122+
<a href="/docs/basic-features/data-fetching/overview.md">
123123
<b>Data Fetching:</b>
124124
<small>Learn more about data fetching in Next.js.</small>
125125
</a>

docs/api-reference/data-fetching/get-server-side-props.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export default Page
144144
For more information on what to do next, we recommend the following sections:
145145

146146
<div class="card">
147-
<a href="/docs/basic-features/data-fetching/index.md">
147+
<a href="/docs/basic-features/data-fetching/overview.md">
148148
<b>Data Fetching:</b>
149149
<small>Learn more about data fetching in Next.js.</small>
150150
</a>

docs/api-reference/data-fetching/get-static-props.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ export default Blog
237237
For more information on what to do next, we recommend the following sections:
238238

239239
<div class="card">
240-
<a href="/docs/basic-features/data-fetching/index.md">
240+
<a href="/docs/basic-features/data-fetching/overview.md">
241241
<b>Data Fetching:</b>
242242
<small>Learn more about data fetching in Next.js.</small>
243243
</a>

docs/api-reference/next/router.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export default ActiveLink
4242
The following is the definition of the `router` object returned by both [`useRouter`](#useRouter) and [`withRouter`](#withRouter):
4343

4444
- `pathname`: `String` - Current route. That is the path of the page in `/pages`, the configured `basePath` or `locale` is not included.
45-
- `query`: `Object` - The query string parsed to an object. It will be an empty object during prerendering if the page doesn't have [data fetching requirements](/docs/basic-features/data-fetching/index.md). Defaults to `{}`
45+
- `query`: `Object` - The query string parsed to an object. It will be an empty object during prerendering if the page doesn't have [data fetching requirements](/docs/basic-features/data-fetching/overview.md). Defaults to `{}`
4646
- `asPath`: `String` - The path (including the query) shown in the browser without the configured `basePath` or `locale`.
4747
- `isFallback`: `boolean` - Whether the current page is in [fallback mode](/docs/api-reference/data-fetching/get-static-paths.md#fallback-pages).
4848
- `basePath`: `String` - The active [basePath](/docs/api-reference/next.config.js/basepath.md) (if enabled).

docs/authentication.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Authentication verifies who a user is, while authorization controls what a user
88

99
## Authentication Patterns
1010

11-
The first step to identifying which authentication pattern you need is understanding the [data-fetching strategy](/docs/basic-features/data-fetching/index.md) you want. We can then determine which authentication providers support this strategy. There are two main patterns:
11+
The first step to identifying which authentication pattern you need is understanding the [data-fetching strategy](/docs/basic-features/data-fetching/overview.md) you want. We can then determine which authentication providers support this strategy. There are two main patterns:
1212

1313
- Use [static generation](/docs/basic-features/pages.md#static-generation-recommended) to server-render a loading state, followed by fetching user data client-side.
1414
- Fetch user data [server-side](/docs/basic-features/pages.md#server-side-rendering) to eliminate a flash of unauthenticated content.
@@ -156,7 +156,7 @@ For more information on what to do next, we recommend the following sections:
156156
</div>
157157

158158
<div class="card">
159-
<a href="/docs/basic-features/data-fetching/index.md">
159+
<a href="/docs/basic-features/data-fetching/overview.md">
160160
<b>Data Fetching:</b>
161161
<small>Learn more about data fetching in Next.js.</small>
162162
</a>

docs/basic-features/data-fetching/index.md renamed to docs/basic-features/data-fetching/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
description: 'Data fetching in Next.js allows you to render your content in different ways, depending on your applications use case. These include pre-rendering with server-side rendering or static-site generation, and incremental static regeneration. Learn how to manage your application data in Next.js.'
2+
description: 'Next.js allows you to fetch data in multiple ways, with pre-rendering, server-side rendering or static-site generation, and incremental static regeneration. Learn how to manage your application data in Next.js.'
33
---
44

55
# Data Fetching Overview

docs/basic-features/environment-variables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ DB_USER=myuser
3030
DB_PASS=mypassword
3131
```
3232

33-
This loads `process.env.DB_HOST`, `process.env.DB_USER`, and `process.env.DB_PASS` into the Node.js environment automatically allowing you to use them in [Next.js data fetching methods](/docs/basic-features/data-fetching/index.md) and [API routes](/docs/api-routes/introduction.md).
33+
This loads `process.env.DB_HOST`, `process.env.DB_USER`, and `process.env.DB_PASS` into the Node.js environment automatically allowing you to use them in [Next.js data fetching methods](/docs/basic-features/data-fetching/overview.md) and [API routes](/docs/api-routes/introduction.md).
3434

3535
For example, using [`getStaticProps`](/docs/basic-features/data-fetching/get-static-props.md):
3636

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy