File tree 2 files changed +4
-1
lines changed
packages/nextjs/src/utils 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -222,6 +222,9 @@ export function withSentryConfig(
222
222
* @param vars Object containing vars to set
223
223
*/
224
224
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 ( ) ) ;
225
228
// ensure the file exists
226
229
const envFilePath = path . join ( projectDir , '.env.local' ) ;
227
230
if ( ! fs . existsSync ( envFilePath ) ) {
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ function makeWrappedHandlerGetter(origHandlerGetter: HandlerGetter): WrappedHand
121
121
const wrappedHandlerGetter = async function ( this : NextServer ) : Promise < ReqHandler > {
122
122
console . log ( 'in wrappedHandlerGetter' ) ;
123
123
const cwd = ( process . env . cwd as unknown ) as ( ) => string ;
124
- console . log ( cwd ( ) ) ;
124
+ console . log ( 'cwd in wrappedHandlerGetter' , cwd ( ) ) ;
125
125
126
126
if ( ! sdkSetupComplete ) {
127
127
try {
You can’t perform that action at this time.
0 commit comments