We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
isBuild
1 parent cdfa826 commit 83a7654Copy full SHA for 83a7654
packages/nextjs/src/index.server.ts
@@ -31,9 +31,9 @@ const domain = domainModule as typeof domainModule & { active: (domainModule.Dom
31
// or
32
// `node /var/runtime/index.js`,
33
// 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';
+let isBuild = false;
+if (process.argv.includes('build') || process.env.SENTRY_BUILD_PHASE) {
+ process.env.SENTRY_BUILD_PHASE = 'true';
37
isBuild = true;
38
}
39
0 commit comments