File tree Expand file tree Collapse file tree 3 files changed +0
-13
lines changed Expand file tree Collapse file tree 3 files changed +0
-13
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -43,12 +43,6 @@ func main() {
43
43
log .Fatal ("Error loading .env file" )
44
44
}
45
45
46
- // Load config/.env file
47
- err = godotenv .Load ("../config/.env" )
48
- if err != nil {
49
- log .Fatal ("Error loading .env file" )
50
- }
51
-
52
46
// Initialize Firestore client
53
47
ctx := context .Background ()
54
48
firebaseCredentialPath := os .Getenv ("FIREBASE_CREDENTIAL_PATH" )
Original file line number Diff line number Diff line change @@ -6,12 +6,6 @@ import { connectToDB } from "./model/repository.js";
6
6
7
7
const port = process . env . PORT || 3001 ;
8
8
9
- // Load environment variables from config .env file
10
- const result = dotenv . config ( { path : '../config/.env' } ) ;
11
- if ( result . error ) {
12
- throw new Error ( "Failed to load .env file" ) ;
13
- }
14
-
15
9
const server = http . createServer ( index ) ;
16
10
17
11
await connectToDB ( ) . then ( ( ) => {
You can’t perform that action at this time.
0 commit comments