mirror of
https://github.com/ente-io/ente.git
synced 2025-06-13 12:08:56 +00:00
The methods are trivial, and we cannot centralize the keys since they will be different for different apps. So an abstraction for this is not beneficial. Also move the next specific dev build check to @/next
13 lines
483 B
TypeScript
13 lines
483 B
TypeScript
/**
|
|
* A build is considered as a development build if either the NODE_ENV is
|
|
* environment variable is set to 'development'.
|
|
*
|
|
* NODE_ENV is automatically set to 'development' when we run `yarn dev`. From
|
|
* Next.js docs:
|
|
*
|
|
* > If the environment variable NODE_ENV is unassigned, Next.js automatically
|
|
* assigns development when running the `next dev` command, or production for
|
|
* all other commands.
|
|
*/
|
|
export const isDevBuild = process.env.NODE_ENV === "development";
|