Movatterモバイル変換


[0]ホーム

URL:


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

generateBuildId

Last updated April 15, 2025

Next.js generates an ID duringnext build to identify which version of your application is being served. The same build should be used and boot up multiple containers.

If you are rebuilding for each stage of your environment, you will need to generate a consistent build ID to use between containers. Use thegenerateBuildId command innext.config.js:

next.config.js
module.exports= {generateBuildId:async ()=> {// This could be anything, using the latest git hashreturnprocess.env.GIT_HASH  },}

Was this helpful?

supported.

[8]ページ先頭

©2009-2025 Movatter.jp