Movatterモバイル変換


[0]ホーム

URL:


Skip to content
Important
Security Advisory: React2Shell & two new vulnerabilities
Find out more

distDir

Last updated April 15, 2025

You can specify a name to use for a custom build directory to use instead of.next.

Opennext.config.js and add thedistDir config:

next.config.js
module.exports= {  distDir:'build',}

Now if you runnext build Next.js will usebuild instead of the default.next folder.

distDirshould not leave your project directory. For example,../build is aninvalid directory.

Was this helpful?

supported.

[8]ページ先頭

©2009-2025 Movatter.jp