File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
packages/nextjs/src/server Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -24,13 +24,12 @@ const globalWithInjectedValues = global as typeof global & {
24
24
25
25
const domain = domainModule as typeof domainModule & { active : ( domainModule . Domain & Carrier ) | null } ;
26
26
27
- // Exporting this constant means we can compute it without the linter complaining, even if we stop directly using it in
28
- // this file. It's important that it be computed as early as possible, because one of its indicators is seeing 'build'
29
- // (as in the CLI command `next build`) in `process.argv`. Later on in the build process, everything's been spun out
30
- // into child threads and `argv` turns into ['node', 'path/to/childProcess.js'], so the original indicator is lost. We
31
- // thus want to compute it as soon as the SDK is loaded for the first time, which is normally when the user imports
32
- // `withSentryConfig` into `next.config.js`.
27
+ // TODO (v8): Remove this
28
+ /**
29
+ * @deprecated This constant will be removed in the next major update.
30
+ */
33
31
export const IS_BUILD = isBuild ( ) ;
32
+
34
33
const IS_VERCEL = ! ! process . env . VERCEL ;
35
34
36
35
/** Inits the Sentry NextJS SDK on node. */
@@ -140,7 +139,7 @@ function addServerIntegrations(options: NodeOptions): void {
140
139
141
140
// TODO (v8): Remove this
142
141
/**
143
- * @deprecated Use the constant `IS_BUILD` instead .
142
+ * @deprecated This constant will be removed in the next major update .
144
143
*/
145
144
const deprecatedIsBuild = ( ) : boolean => isBuild ( ) ;
146
145
// eslint-disable-next-line deprecation/deprecation
You can’t perform that action at this time.
0 commit comments