Skip to content

Commit

Permalink
chore: update path of basic-features (vercel#71791)
Browse files Browse the repository at this point in the history
## Description
`basic-features` folder was deleted at vercel#50701.
Some existing paths navigate different pages.
Then update correct paths.

### Improving Documentation

- [x] Run `pnpm prettier-fix` to fix formatting issues before opening
the PR.
- [x] Read the Docs Contribution Guide to ensure your contribution
follows the docs guidelines:
https://nextjs.org/docs/community/contribution-guide

Co-authored-by: JJ Kasper <jj@jjsweb.site>
  • Loading branch information
2 people authored and stipsan committed Nov 6, 2024
1 parent e84c882 commit 80d0e87
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion packages/eslint-plugin-next/README.md
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion packages/font/google/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion packages/font/local/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion packages/next/src/lib/eslint/customFormatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions packages/next/src/lib/eslint/runLintCheck.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`
)
)

Expand Down Expand Up @@ -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'
)
}

Expand Down Expand Up @@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions packages/next/src/server/config-shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -642,12 +642,12 @@ export interface NextConfig extends Record<string, any> {

/**
* @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

Expand Down Expand Up @@ -764,7 +764,7 @@ export interface NextConfig extends Record<string, any> {
/** @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 */
Expand Down
2 changes: 1 addition & 1 deletion packages/next/src/shared/lib/image-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) */
Expand Down
2 changes: 1 addition & 1 deletion packages/next/src/shared/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ export type NextApiResponse<Data = any> = 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,
Expand Down
14 changes: 7 additions & 7 deletions packages/next/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ export type GetStaticPropsResult<Props> =

/**
* 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) => {
Expand Down Expand Up @@ -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 () => {
Expand All @@ -241,7 +241,7 @@ export type GetStaticPaths<Params extends ParsedUrlQuery = ParsedUrlQuery> = (

/**
* 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,
Expand Down Expand Up @@ -273,8 +273,8 @@ export type GetServerSidePropsResult<Props> =

/**
* 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) => {
Expand Down
2 changes: 1 addition & 1 deletion turbopack/crates/turbopack-env/src/dotenv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<FileSystemPath>) -> Result<Vc<Box<dyn ProcessEnv>>> {
let env: Vc<Box<dyn ProcessEnv>> = Vc::upcast(CommandLineProcessEnv::new());
Expand Down

0 comments on commit 80d0e87

Please sign in to comment.