Skip to content

Commit 4f25011

Browse files
committed
add comments
1 parent e14f5b4 commit 4f25011

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/nextjs/src/config/turbopack/generateValueInjectionRules.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export function generateValueInjectionRules({
1818
let serverValues: Record<string, JSONValue> = {};
1919

2020
if (nextJsVersion) {
21+
// This is used to determine version-based dev-symbolication behavior
2122
isomorphicValues._sentryNextJsVersion = nextJsVersion;
2223
}
2324

packages/nextjs/src/config/webpack.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,7 @@ function addValueInjectionLoader({
728728
// Only inject if release creation is not explicitly disabled (to maintain build determinism)
729729
SENTRY_RELEASE: releaseToInject && !buildContext.dev ? { id: releaseToInject } : undefined,
730730
_sentryBasePath: buildContext.dev ? userNextConfig.basePath : undefined,
731+
// This is used to determine version-based dev-symbolication behavior
731732
_sentryNextJsVersion: nextJsVersion,
732733
};
733734

0 commit comments

Comments
 (0)