Skip to content

Commit 83a7654

Browse files
committed
initialize isBuild to false and namespace build flag
1 parent cdfa826 commit 83a7654

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/nextjs/src/index.server.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ const domain = domainModule as typeof domainModule & { active: (domainModule.Dom
3131
// or
3232
// `node /var/runtime/index.js`,
3333
// so we never drop into the `if` in the first place.
34-
let isBuild;
35-
if (process.argv.includes('build') || process.env.BUILD_PHASE) {
36-
process.env.BUILD_PHASE = 'true';
34+
let isBuild = false;
35+
if (process.argv.includes('build') || process.env.SENTRY_BUILD_PHASE) {
36+
process.env.SENTRY_BUILD_PHASE = 'true';
3737
isBuild = true;
3838
}
3939

0 commit comments

Comments
 (0)