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.
1 parent 0ebd103 commit 037eb51Copy full SHA for 037eb51
packages/nextjs/src/config/webpack.ts
@@ -154,6 +154,8 @@ async function addSentryToEntryProperty(
154
fs.mkdtempSync(path.resolve(os.tmpdir(), 'sentry-')),
155
'rewriteFramesHelper.js',
156
);
157
+ console.log('cwd', process.cwd());
158
+ console.log('buildContext.dir', buildContext.dir);
159
const buildDirAbsPath = path.resolve(buildContext.dir, buildContext.config.distDir);
160
fs.writeFileSync(rewriteFramesHelper, `global.__rewriteFramesDistDir__ = '${buildDirAbsPath}';\n`);
161
filesToInject.unshift(rewriteFramesHelper);
0 commit comments