To configure a static ID between our builds, we have to provide “generateBuildId” function with this given configuration.

BY Best Interview Question ON 08 Jun 2019

Example

// next.config.js

module.exports = {

   generateBuildId: async () => {

  // For example get the latest git commit hash here

  return 'my-build-id';

  }

};