You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now that the beta docs have been merged into stable with the release of
13.4, this updates all links as some paths have changed due to
redirects.
---------
Co-authored-by: Steven <steven@ceriously.com>
Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>
Co-authored-by: JJ Kasper <jj@jjsweb.site>
Copy file name to clipboardExpand all lines: examples/with-static-export/README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ Next.js enables starting as a static site or Single-Page Application (SPA), then
4
4
5
5
When running `next build`, Next.js generates an HTML file per route. By breaking a strict SPA into individual HTML files, Next.js can avoid loading unnecessary JavaScript code on the client-side, reducing the bundle size and enabling faster page loads.
Copy file name to clipboardExpand all lines: packages/font/README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -4,4 +4,4 @@
4
4
5
5
This new font system also allows you to conveniently use all Google Fonts with performance and privacy in mind. CSS and font files are downloaded at build time and self-hosted with the rest of your static assets. No requests are sent to Google by the browser.
Copy file name to clipboardExpand all lines: packages/next/src/build/analysis/get-page-static-info.ts
+1-1
Original file line number
Diff line number
Diff line change
@@ -412,7 +412,7 @@ export async function getPageStaticInfo(params: {
412
412
}
413
413
if(pageType==='app'){
414
414
if(config){
415
-
constmessage=`\`export const config\` in ${pageFilePath} is deprecated. Please change \`runtime\` property to segment export config. See https://beta.nextjs.org/docs/api-reference/segment-config`
415
+
constmessage=`\`export const config\` in ${pageFilePath} is deprecated. Please change \`runtime\` property to segment export config. See https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config`
`Warning: You're using \`next/head\` inside the \`app\` directory, please migrate to the Metadata API. See https://beta.nextjs.org/docs/api-reference/metadata for more details.`
94
+
`Warning: You're using \`next/head\` inside the \`app\` directory, please migrate to the Metadata API. See https://nextjs.org/docs/app/api-reference/file-conventions/metadata for more details.`
Copy file name to clipboardExpand all lines: packages/next/src/build/webpack/plugins/wellknown-errors-plugin/parseRSC.ts
+4-4
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ function formatRSCErrorMessage(
65
65
if(isPagesDir){
66
66
formattedMessage=message.replace(
67
67
NEXT_RSC_ERR_CLIENT_IMPORT,
68
-
`\n\nYou're importing a component that needs $1. That only works in a Server Component which is not supported in the pages/ directory. Read more: https://beta.nextjs.org/docs/rendering/server-and-client-components\n\n`
68
+
`\n\nYou're importing a component that needs $1. That only works in a Server Component which is not supported in the pages/ directory. Read more: https://nextjs.org/docs/getting-started/react-essentials#server-components\n\n`
69
69
)
70
70
formattedVerboseMessage='\n\nImport trace for requested module:\n'
71
71
}else{
@@ -91,7 +91,7 @@ function formatRSCErrorMessage(
91
91
}elseif(NEXT_RSC_ERR_INVALID_API.test(message)){
92
92
formattedMessage=message.replace(
93
93
NEXT_RSC_ERR_INVALID_API,
94
-
`\n\n"$1" is not supported in app/. Read more: https://beta.nextjs.org/docs/data-fetching/fundamentals\n\n`
94
+
`\n\n"$1" is not supported in app/. Read more: https://nextjs.org/docs/app/building-your-application/data-fetching\n\n`
`\n\nYou are attempting to export "$1" from a component marked with "use client", which is disallowed. Either remove the export, or the "use client" directive. Read more: https://beta.nextjs.org/docs/api-reference/metadata\n\n`
106
+
`\n\nYou are attempting to export "$1" from a component marked with "use client", which is disallowed. Either remove the export, or the "use client" directive. Read more: https://nextjs.org/docs/getting-started/react-essentials#the-use-client-directive\n\n`
`\n\n"metadata" and "generateMetadata" cannot be exported at the same time, please keep one of them. Read more: https://beta.nextjs.org/docs/api-reference/metadata\n\n`
113
+
`\n\n"metadata" and "generateMetadata" cannot be exported at the same time, please keep one of them. Read more: https://nextjs.org/docs/app/api-reference/file-conventions/metadata\n\n`
Copy file name to clipboardExpand all lines: packages/next/src/lib/metadata/resolvers/resolve-url.ts
+1-1
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ export function getSocialImageFallbackMetadataBase(
35
35
// Add new line to warning for worker output
36
36
console.log()
37
37
Log.warnOnce(
38
-
`metadata.metadataBase is not set for resolving social open graph or twitter images, fallbacks to "${fallbackMetadata.origin}". See https://beta.nextjs.org/docs/api-reference/metadata#metadatabase`
38
+
`metadata.metadataBase is not set for resolving social open graph or twitter images, fallbacks to "${fallbackMetadata.origin}". See https://nextjs.org/docs/app/api-reference/functions/generate-metadata#metadatabase`
Copy file name to clipboardExpand all lines: packages/next/src/lib/typescript/writeConfigurationDefaults.ts
+1-1
Original file line number
Diff line number
Diff line change
@@ -222,7 +222,7 @@ export async function writeConfigurationDefaults(
222
222
'tsconfig.json'
223
223
)} extends another configuration, which means we cannot add the Next.js TypeScript plugin automatically. To improve your development experience, we recommend adding the Next.js plugin (\`${chalk.cyan(
224
224
'"plugins": [{ "name": "next" }]'
225
-
)}\`) manually to your TypeScript configuration. Learn more: https://beta.nextjs.org/docs/configuring/typescript#using-the-typescript-plugin\n`
225
+
)}\`) manually to your TypeScript configuration. Learn more: https://nextjs.org/docs/app/building-your-application/configuring/typescript#the-typescript-plugin\n`
"This lets you intentionally opt-in to all caching of data. This option forces all fetches to be cache even if the `cache: 'no-store'` option is passed to `fetch()`.",
Copy file name to clipboardExpand all lines: packages/next/src/server/typescript/rules/error.ts
+1-1
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ const errorEntry = {
22
22
file: source,
23
23
category: ts.DiagnosticCategory.Error,
24
24
code: NEXT_TS_ERRORS.INVALID_ERROR_COMPONENT,
25
-
messageText: `Error Components must be Client Components, please add the "use client" directive: https://beta.nextjs.org/docs/api-reference/file-conventions/error`,
25
+
messageText: `Error Components must be Client Components, please add the "use client" directive: https://nextjs.org/docs/app/api-reference/file-conventions/error`,
Copy file name to clipboardExpand all lines: packages/next/src/server/typescript/rules/metadata.ts
+1-1
Original file line number
Diff line number
Diff line change
@@ -425,7 +425,7 @@ const metadata = {
425
425
file: getSource(fileName),
426
426
category: ts.DiagnosticCategory.Error,
427
427
code: NEXT_TS_ERRORS.INVALID_METADATA_EXPORT,
428
-
messageText: `The 'metadata' export value is not typed correctly, please make sure it is typed as 'Metadata':\nhttps://beta.nextjs.org/docs/guides/seo#static-metadata`,
428
+
messageText: `The 'metadata' export value is not typed correctly, please make sure it is typed as 'Metadata':\nhttps://nextjs.org/docs/app/building-your-application/optimizing/metadata#static-metadata`,
Copy file name to clipboardExpand all lines: test/development/acceptance/server-component-compiler-errors-in-pages.test.ts
+2-2
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ createNextDescribe(
52
52
"./components/Comp.js
53
53
ReactServerComponentsError:
54
54
55
-
You're importing a component that needs next/headers. That only works in a Server Component which is not supported in the pages/ directory. Read more: https://beta.nextjs.org/docs/rendering/server-and-client-components
55
+
You're importing a component that needs next/headers. That only works in a Server Component which is not supported in the pages/ directory. Read more: https://nextjs.org/docs/getting-started/react-essentials#server-components
56
56
57
57
,-[1:1]
58
58
1 |
@@ -94,7 +94,7 @@ createNextDescribe(
94
94
"./components/Comp.js
95
95
ReactServerComponentsError:
96
96
97
-
You're importing a component that needs server-only. That only works in a Server Component which is not supported in the pages/ directory. Read more: https://beta.nextjs.org/docs/rendering/server-and-client-components
97
+
You're importing a component that needs server-only. That only works in a Server Component which is not supported in the pages/ directory. Read more: https://nextjs.org/docs/getting-started/react-essentials#server-components
'app/legacy-runtime-config/page.js is deprecated. Please change `runtime` property to segment export config. See https://beta.nextjs.org/docs/api-reference/segment-config'
24
+
'app/legacy-runtime-config/page.js is deprecated. Please change `runtime` property to segment export config. See https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config'
0 commit comments