diff --git a/packages/eslint-plugin-next/README.md b/packages/eslint-plugin-next/README.md index 4e4f393c3a0d4..fde98d768f95e 100644 --- a/packages/eslint-plugin-next/README.md +++ b/packages/eslint-plugin-next/README.md @@ -1,4 +1,4 @@ # `@next/eslint-plugin-next` Documentation for `@next/eslint-plugin-next` can be found at: -https://nextjs.org/docs/basic-features/eslint#eslint-plugin +https://nextjs.org/docs/app/building-your-application/configuring/eslint#eslint-plugin diff --git a/packages/font/google/index.js b/packages/font/google/index.js index 2857d74621362..dd3e7cf587cd8 100644 --- a/packages/font/google/index.js +++ b/packages/font/google/index.js @@ -10,6 +10,6 @@ if (process.env.NODE_ENV === 'development') { '\nIf you just installed `@next/font`, please try restarting `next dev` and resaving your file.' } -message += `\n\nRead more: https://nextjs.org/docs/basic-features/font-optimization` +message += `\n\nRead more: https://nextjs.org/docs/app/building-your-application/optimizing/fonts` throw new Error(message) diff --git a/packages/font/local/index.js b/packages/font/local/index.js index 172df54efaf82..1b3a68d23ec28 100644 --- a/packages/font/local/index.js +++ b/packages/font/local/index.js @@ -10,6 +10,6 @@ if (process.env.NODE_ENV === 'development') { '\nIf you just installed `@next/font`, please try restarting `next dev` and resaving your file.' } -message += `\n\nRead more: https://nextjs.org/docs/basic-features/font-optimization` +message += `\n\nRead more: https://nextjs.org/docs/app/building-your-application/optimizing/fonts` throw new Error(message) diff --git a/packages/next/src/lib/eslint/customFormatter.ts b/packages/next/src/lib/eslint/customFormatter.ts index 7b491742397ca..b6cb56c767467 100644 --- a/packages/next/src/lib/eslint/customFormatter.ts +++ b/packages/next/src/lib/eslint/customFormatter.ts @@ -131,7 +131,7 @@ export async function formatResults( ? output + `\n\n${cyan( 'info' - )} - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules` + )} - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/app/building-your-application/configuring/eslint#disabling-rules` : '', totalNextPluginErrorCount, totalNextPluginWarningCount, diff --git a/packages/next/src/lib/eslint/runLintCheck.ts b/packages/next/src/lib/eslint/runLintCheck.ts index 54f9b9e78a3f8..a39b9ed3fe508 100644 --- a/packages/next/src/lib/eslint/runLintCheck.ts +++ b/packages/next/src/lib/eslint/runLintCheck.ts @@ -52,7 +52,7 @@ async function cliPrompt(cwd: string): Promise<{ config?: any }> { bold( `${cyan( '?' - )} How would you like to configure ESLint? https://nextjs.org/docs/basic-features/eslint` + )} How would you like to configure ESLint? https://nextjs.org/docs/app/building-your-application/configuring/eslint` ) ) @@ -263,7 +263,7 @@ async function lint( } else { Log.warn('') Log.warn( - 'The Next.js plugin was not detected in your ESLint configuration. See https://nextjs.org/docs/basic-features/eslint#migrating-existing-config' + 'The Next.js plugin was not detected in your ESLint configuration. See https://nextjs.org/docs/app/building-your-application/configuring/eslint#migrating-existing-config' ) } @@ -423,7 +423,7 @@ export async function runLintCheck( if (selectedConfig == null) { // Show a warning if no option is selected in prompt Log.warn( - 'If you set up ESLint yourself, we recommend adding the Next.js ESLint plugin. See https://nextjs.org/docs/basic-features/eslint#migrating-existing-config' + 'If you set up ESLint yourself, we recommend adding the Next.js ESLint plugin. See https://nextjs.org/docs/app/building-your-application/configuring/eslint#migrating-existing-config' ) return null } else { diff --git a/packages/next/src/server/config-shared.ts b/packages/next/src/server/config-shared.ts index a3251639758d6..67021f6abaa90 100644 --- a/packages/next/src/server/config-shared.ts +++ b/packages/next/src/server/config-shared.ts @@ -642,12 +642,12 @@ export interface NextConfig extends Record { /** * @since version 11 - * @see [ESLint configuration](https://nextjs.org/docs/basic-features/eslint) + * @see [ESLint configuration](https://nextjs.org/docs/app/building-your-application/configuring/eslint) */ eslint?: ESLintConfig /** - * @see [Next.js TypeScript documentation](https://nextjs.org/docs/basic-features/typescript) + * @see [Next.js TypeScript documentation](https://nextjs.org/docs/app/building-your-application/configuring/typescript) */ typescript?: TypeScriptConfig @@ -764,7 +764,7 @@ export interface NextConfig extends Record { /** @see [Disabling x-powered-by](https://nextjs.org/docs/api-reference/next.config.js/disabling-x-powered-by) */ poweredByHeader?: boolean - /** @see [Using the Image Component](https://nextjs.org/docs/basic-features/image-optimization#using-the-image-component) */ + /** @see [Using the Image Component](https://nextjs.org/docs/app/api-reference/next-config-js/images) */ images?: ImageConfig /** Configure indicators in development environment */ diff --git a/packages/next/src/shared/lib/image-config.ts b/packages/next/src/shared/lib/image-config.ts index dab9612cf933a..8d35be117f3a9 100644 --- a/packages/next/src/shared/lib/image-config.ts +++ b/packages/next/src/shared/lib/image-config.ts @@ -77,7 +77,7 @@ export type ImageConfigComplete = { /** @see [Device sizes documentation](https://nextjs.org/docs/api-reference/next/image#device-sizes) */ deviceSizes: number[] - /** @see [Image sizing documentation](https://nextjs.org/docs/basic-features/image-optimization#image-sizing) */ + /** @see [Image sizing documentation](https://nextjs.org/docs/app/building-your-application/optimizing/images#image-sizing) */ imageSizes: number[] /** @see [Image loaders configuration](https://nextjs.org/docs/api-reference/next/legacy/image#loader) */ diff --git a/packages/next/src/shared/lib/utils.ts b/packages/next/src/shared/lib/utils.ts index d097c46ad181c..ff1955ab2456c 100644 --- a/packages/next/src/shared/lib/utils.ts +++ b/packages/next/src/shared/lib/utils.ts @@ -283,7 +283,7 @@ export type NextApiResponse = ServerResponse & { * Static Regeneration. * The path should be an actual path, not a rewritten path. E.g. for * "/blog/[slug]" this should be "/blog/post-1". - * @link https://nextjs.org/docs/basic-features/data-fetching/incremental-static-regeneration#on-demand-revalidation + * @link https://nextjs.org/docs/app/building-your-application/data-fetching/incremental-static-regeneration#on-demand-revalidation-with-revalidatepath */ revalidate: ( urlPath: string, diff --git a/packages/next/src/types.ts b/packages/next/src/types.ts index 3d3a57015b37d..e68458b3370d2 100644 --- a/packages/next/src/types.ts +++ b/packages/next/src/types.ts @@ -186,8 +186,8 @@ export type GetStaticPropsResult = /** * Static Site Generation feature for Next.js. - * @link https://nextjs.org/docs/basic-features/data-fetching/get-static-props - * @link https://nextjs.org/docs/basic-features/typescript#static-generation-and-server-side-rendering + * @link https://nextjs.org/docs/pages/building-your-application/data-fetching/get-static-props + * @link https://nextjs.org/docs/pages/building-your-application/configuring/typescript#static-generation-and-server-side-rendering * @example * ```ts * export const getStaticProps: GetStaticProps = async (context) => { @@ -226,8 +226,8 @@ export type GetStaticPathsResult< /** * Define a list of paths to be statically generated if dynamic routes exist. - * @link https://nextjs.org/docs/basic-features/data-fetching/get-static-paths - * @link https://nextjs.org/docs/basic-features/typescript#static-generation-and-server-side-rendering + * @link https://nextjs.org/docs/pages/building-your-application/data-fetching/get-static-paths + * @link https://nextjs.org/docs/pages/building-your-application/configuring/typescript#static-generation-and-server-side-rendering * @example * ```ts * export const getStaticPaths: GetStaticPaths = async () => { @@ -241,7 +241,7 @@ export type GetStaticPaths = ( /** * Context object passed into `getServerSideProps`. - * @link https://nextjs.org/docs/api-reference/data-fetching/get-server-side-props#context-parameter + * @link https://nextjs.org/docs/pages/api-reference/functions/get-server-side-props#context-parameter */ export type GetServerSidePropsContext< Params extends ParsedUrlQuery = ParsedUrlQuery, @@ -273,8 +273,8 @@ export type GetServerSidePropsResult = /** * Server-side Rendering feature for Next.js. - * @link https://nextjs.org/docs/basic-features/data-fetching/get-server-side-props - * @link https://nextjs.org/docs/basic-features/typescript#static-generation-and-server-side-rendering + * @link https://nextjs.org/docs/pages/building-your-application/data-fetching/get-server-side-props + * @link https://nextjs.org/docs/pages/building-your-application/configuring/typescript#static-generation-and-server-side-rendering * @example * ```ts * export const getServerSideProps: GetServerSideProps = async (context) => { diff --git a/turbopack/crates/turbopack-env/src/dotenv.rs b/turbopack/crates/turbopack-env/src/dotenv.rs index ef77e4d434484..510a9a4b338ea 100644 --- a/turbopack/crates/turbopack-env/src/dotenv.rs +++ b/turbopack/crates/turbopack-env/src/dotenv.rs @@ -6,7 +6,7 @@ use turbo_tasks_fs::FileSystemPath; use crate::TryDotenvProcessEnv; /// Loads a series of dotenv files according to the precedence rules set by -/// https://nextjs.org/docs/basic-features/environment-variables#environment-variable-load-order +/// https://nextjs.org/docs/app/building-your-application/configuring/environment-variables#environment-variable-load-order #[turbo_tasks::function] pub async fn load_env(project_path: Vc) -> Result>> { let env: Vc> = Vc::upcast(CommandLineProcessEnv::new());