Skip to content

Commit b7888d2

Browse files
committed
Update jwt secret environment configurations
1 parent d0b3e00 commit b7888d2

File tree

3 files changed

+0
-13
lines changed

3 files changed

+0
-13
lines changed

apps/config/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

apps/question-service/main.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,6 @@ func main() {
4343
log.Fatal("Error loading .env file")
4444
}
4545

46-
// Load config/.env file
47-
err = godotenv.Load("../config/.env")
48-
if err != nil {
49-
log.Fatal("Error loading .env file")
50-
}
51-
5246
// Initialize Firestore client
5347
ctx := context.Background()
5448
firebaseCredentialPath := os.Getenv("FIREBASE_CREDENTIAL_PATH")

apps/user-service/server.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ import { connectToDB } from "./model/repository.js";
66

77
const port = process.env.PORT || 3001;
88

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-
159
const server = http.createServer(index);
1610

1711
await connectToDB().then(() => {

0 commit comments

Comments
 (0)