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

Example

                                        

// next.config.js

module.exports = {

   generateBuildId: async () => {

  // For example get the latest git commit hash here

  return 'my-build-id';

  }

};

Suggest An Answer

No suggestions avaliable!