本页还没有译文
本页 6 段还没译成简体中文,下面显示的是英文原文。distDir
还没翻译译自英文(nextjs.org)本页 6 段都还没译
You can specify a name to use for a custom build directory to use instead of .next.
Open next.config.js and add the distDir config:
next.config.js
module.exports = {
distDir: 'build',
}Now if you run next build Next.js will use build instead of the default .next folder.
distDir should not leave your project directory. For example, ../build is an invalid directory.
AI 翻译查看英文原文