isBuild.js 301 B

1234567891011
  1. import { PHASE_PRODUCTION_BUILD } from 'next/constants';
  2. /**
  3. * Decide if the currently running process is part of the build phase or happening at runtime.
  4. */
  5. function isBuild() {
  6. return process.env.NEXT_PHASE === PHASE_PRODUCTION_BUILD;
  7. }
  8. export { isBuild };
  9. //# sourceMappingURL=isBuild.js.map