10000 more cwd logging · sdemjanenko/sentry-javascript@3eced19 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3eced19

Browse files
committed
more cwd logging
1 parent f1c8539 commit 3eced19

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages/nextjs/src/utils/config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,9 @@ export function withSentryConfig(
222222
* @param vars Object containing vars to set
223223
*/
224224
function setRuntimeEnvVars(projectDir: string, vars: PlainObject<string>): void {
225+
console.log('project dir');
226+
const cwd = (process.env.cwd as unknown) as () => string;
227+
console.log('cwd() in setRuntimeEnvVars', cwd());
225228
// ensure the file exists
226229
const envFilePath = path.join(projectDir, '.env.local');
227230
if (!fs.existsSync(envFilePath)) {

packages/nextjs/src/utils/instrumentServer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ function makeWrappedHandlerGetter(origHandlerGetter: HandlerGetter): WrappedHand
121121
const wrappedHandlerGetter = async function(this: NextServer): Promise<ReqHandler> {
122122
console.log('in wrappedHandlerGetter');
123123
const cwd = (process.env.cwd as unknown) as () => string;
124-
console.log(cwd());
124+
console.log('cwd in wrappedHandlerGetter', cwd());
125125

126126
if (!sdkSetupComplete) {
127127
try {

0 commit comments

Comments
 (0)
0