env.ts 483 B

123456789101112
  1. /**
  2. * A build is considered as a development build if either the NODE_ENV is
  3. * environment variable is set to 'development'.
  4. *
  5. * NODE_ENV is automatically set to 'development' when we run `yarn dev`. From
  6. * Next.js docs:
  7. *
  8. * > If the environment variable NODE_ENV is unassigned, Next.js automatically
  9. * assigns development when running the `next dev` command, or production for
  10. * all other commands.
  11. */
  12. export const isDevBuild = process.env.NODE_ENV === "development";