MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / isBuild

Function isBuild

packages/nextjs/src/common/utils/isBuild.ts:6–8  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4 * Decide if the currently running process is part of the build phase or happening at runtime.
5 */
6export function isBuild(): boolean {
7 return process.env.NEXT_PHASE === PHASE_PRODUCTION_BUILD;
8}

Callers 9

initFunction · 0.90
shouldNoopSpanFunction · 0.90
initFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected