File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { DefaultAzureCredential } from '@azure/identity';
33import path from 'node:path' ;
44import dotenv from 'dotenv' ;
55
6- dotenv . config ( { path : path . join ( __dirname , '../ ../../.env' ) } ) ;
6+ dotenv . config ( { path : path . join ( process . cwd ( ) , '../../.env' ) } ) ;
77
88export class UserDbService {
99 private static instance : UserDbService ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { DefaultAzureCredential } from '@azure/identity';
55import dotenv from "dotenv" ;
66
77// Env file is located in the root of the repository
8- dotenv . config ( { path : path . join ( __dirname , "../ ../../.env" ) } ) ;
8+ dotenv . config ( { path : path . join ( process . cwd ( ) , "../../.env" ) } ) ;
99
1010export class BlobService {
1111 private static instance : BlobService ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import toppingsData from '../data/toppings.json';
1010import dotenv from "dotenv" ;
1111
1212// Env file is located in the root of the repository
13- dotenv . config ( { path : path . join ( __dirname , "../ ../../.env" ) } ) ;
13+ dotenv . config ( { path : path . join ( process . cwd ( ) , "../../.env" ) } ) ;
1414
1515// Helper to strip properties starting with underscore from an object
1616function stripUnderscoreProps < T extends object > ( obj : T ) : T {
You can’t perform that action at this time.
0 commit comments