Capítulo 401 de 456
Controls the build ID Next.js generates during next build to identify the version of your app being served, useful when the same build must run across multiple containers.
next.config.js that returns a custom string used as the build ID instead of the default random one.generateBuildId has no effect.module.exports = {
generateBuildId: async () => {
// This could be anything, using the latest git hash
return process.env.GIT_HASH
},
}
deploymentId estiver configurado, este campo é ignorado, version skew passa a ser detectado pelo deployment ID.generateBuildId quando definido.