1.

How to configure build id in Next JS?

Answer»

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';

  }

};



Discussion

No Comment Found