Skip to content

Commit

Permalink
misc: deprecate custom config from being passed to next/build
Browse files Browse the repository at this point in the history
  • Loading branch information
feedthejim committed Feb 1, 2023
1 parent cd5783a commit a199a32
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions packages/next/src/build/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,6 @@ function pageToRoute(page: string) {

export default async function build(
dir: string,
conf = null,
reactProductionProfiling = false,
debugOutput = false,
runLint = true,
Expand All @@ -271,7 +270,7 @@ export default async function build(

const config: NextConfigComplete = await nextBuildSpan
.traceChild('load-next-config')
.traceAsyncFn(() => loadConfig(PHASE_PRODUCTION_BUILD, dir, conf))
.traceAsyncFn(() => loadConfig(PHASE_PRODUCTION_BUILD, dir))

const distDir = path.join(dir, config.distDir)
setGlobal('phase', PHASE_PRODUCTION_BUILD)
Expand Down
1 change: 0 additions & 1 deletion packages/next/src/cli/next-build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ const nextBuild: CliCommand = (argv) => {

return build(
dir,
null,
args['--profile'],
args['--debug'] || process.env.NEXT_DEBUG_BUILD,
!args['--no-lint'],
Expand Down

0 comments on commit a199a32

Please sign in to comment.