mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
### What? This PR removes the automatic ESLint linting that previously ran during `next build`. The documentation has been updated to reflect this change. ### Why? As part of Next.js 16, we're removing the automatic build-time linting that was previously included in the build process. This gives developers more control over when linting runs by explicitly invoking their linter via npm scripts. ### How? - Updated documentation to clarify that automatic build-time linting has been removed in Next.js 16 - Removed the `runLint` parameter and related linting code from the build process - Removed the `verifyAndLint.ts` file which is no longer needed - Simplified type checking code by removing lint-related functionality - Removed ESLint telemetry during builds
@vercel/experimental-nft-next-plugin
Installation
- yarn add -D
@vercel/experimental-nft-next-plugin - npm install -D
@vercel/experimental-nft-next-plugin - pnpm install -D
@vercel/experimental-nft-next-plugin
Usage
// next.config.js
const { createNodeFileTrace } = require('@vercel/experimental-nft-next-plugin')
const withNodeFileTrace = createNodeFileTrace({
// experimental nft options
log: {
all: true,
},
})
module.exports = withNodeFileTrace({
// next config
})
experimental nft options
Note
The default options should work fine.
cwd?: string, default isprocess.cwd(), you can override it to specify another directory to run experimental nft.contextDirectory?: string, relative to cwd, default is.. It must be the directory where thenode_modulesdirectory is located. If you are in the monorepo, you should set it to the root directory of the monorepo. For yarn2+/npm workspaces, the default value will respect thePROJECT_CWDandnpm_config_local_prefixenvironment variables injected by yarn/npm client. If the default value doesn't work, you can override it to specify the root directory of the monorepo.path?: string, additional path which will be appended into thePATHenvironment variable.log?.all?: boolean, default isfalse, whether to show all logs.log?.level?: string, default iserror, the log level.log?.detail?: boolean, default isfalse, whether to expand the log details.