Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 23 additions & 23 deletions data/team.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"isSecretary": true,
"isCoordinator": false,
"createdAt": "2023-01-01T00:00:00Z",
"updatedAt": "2025-06-12T21:14:43.672Z"
"updatedAt": "2025-07-18T04:43:35.482Z"
},
"anmol-kumar": {
"id": "anmol-kumar",
Expand All @@ -27,7 +27,7 @@
"isSecretary": false,
"isCoordinator": true,
"createdAt": "2023-01-01T00:00:00Z",
"updatedAt": "2025-06-12T21:14:43.672Z"
"updatedAt": "2025-07-18T04:43:35.482Z"
},
"naveen-pal": {
"id": "naveen-pal",
Expand All @@ -42,7 +42,7 @@
"isSecretary": false,
"isCoordinator": true,
"createdAt": "2023-01-01T00:00:00Z",
"updatedAt": "2025-06-12T21:14:43.672Z"
"updatedAt": "2025-07-18T04:43:35.482Z"
},
"ridham-patel": {
"id": "ridham-patel",
Expand All @@ -57,7 +57,7 @@
"isSecretary": false,
"isCoordinator": true,
"createdAt": "2023-01-01T00:00:00Z",
"updatedAt": "2025-06-12T21:14:43.672Z"
"updatedAt": "2025-07-18T04:43:35.482Z"
},
"kalp-shah": {
"id": "kalp-shah",
Expand All @@ -72,7 +72,7 @@
"isSecretary": false,
"isCoordinator": true,
"createdAt": "2023-01-01T00:00:00Z",
"updatedAt": "2025-06-12T21:14:43.672Z"
"updatedAt": "2025-07-18T04:43:35.482Z"
},
"mukul-meena": {
"id": "mukul-meena",
Expand All @@ -87,7 +87,7 @@
"isSecretary": false,
"isCoordinator": true,
"createdAt": "2023-01-01T00:00:00Z",
"updatedAt": "2025-06-12T21:14:43.672Z"
"updatedAt": "2025-07-18T04:43:35.482Z"
},
"arpan-gupta": {
"id": "arpan-gupta",
Expand All @@ -102,7 +102,7 @@
"isSecretary": false,
"isCoordinator": false,
"createdAt": "2023-01-01T00:00:00Z",
"updatedAt": "2025-06-12T21:14:43.672Z"
"updatedAt": "2025-07-18T04:43:35.482Z"
},
"rachit-mehta": {
"id": "rachit-mehta",
Expand All @@ -117,7 +117,7 @@
"isSecretary": false,
"isCoordinator": false,
"createdAt": "2023-01-01T00:00:00Z",
"updatedAt": "2025-06-12T21:14:43.672Z"
"updatedAt": "2025-07-18T04:43:35.482Z"
},
"chaitanya-bhoite": {
"id": "chaitanya-bhoite",
Expand All @@ -131,7 +131,7 @@
"isSecretary": false,
"isCoordinator": false,
"createdAt": "2023-01-01T00:00:00Z",
"updatedAt": "2025-06-12T21:14:43.672Z"
"updatedAt": "2025-07-18T04:43:35.482Z"
},
"raj-modi": {
"id": "raj-modi",
Expand All @@ -146,7 +146,7 @@
"isSecretary": false,
"isCoordinator": false,
"createdAt": "2023-01-01T00:00:00Z",
"updatedAt": "2025-06-12T21:14:43.672Z"
"updatedAt": "2025-07-18T04:43:35.482Z"
},
"siddhesh-umarjee": {
"id": "siddhesh-umarjee",
Expand All @@ -161,7 +161,7 @@
"isSecretary": false,
"isCoordinator": false,
"createdAt": "2023-01-01T00:00:00Z",
"updatedAt": "2025-06-12T21:14:43.672Z"
"updatedAt": "2025-07-18T04:43:35.482Z"
},
"beli": {
"id": "beli",
Expand All @@ -176,7 +176,7 @@
"isSecretary": false,
"isCoordinator": false,
"createdAt": "2023-01-01T00:00:00Z",
"updatedAt": "2025-06-12T21:14:43.672Z"
"updatedAt": "2025-07-18T04:43:35.482Z"
},
"jash-pasad": {
"id": "jash-pasad",
Expand All @@ -191,7 +191,7 @@
"isSecretary": false,
"isCoordinator": false,
"createdAt": "2023-01-01T00:00:00Z",
"updatedAt": "2025-06-12T21:14:43.672Z"
"updatedAt": "2025-07-18T04:43:35.482Z"
},
"akul-gupta": {
"id": "akul-gupta",
Expand All @@ -206,7 +206,7 @@
"isSecretary": false,
"isCoordinator": false,
"createdAt": "2023-01-01T00:00:00Z",
"updatedAt": "2025-06-12T21:14:43.672Z"
"updatedAt": "2025-07-18T04:43:35.482Z"
},
"indrayudh-mandal": {
"id": "indrayudh-mandal",
Expand All @@ -221,7 +221,7 @@
"isSecretary": false,
"isCoordinator": false,
"createdAt": "2023-01-01T00:00:00Z",
"updatedAt": "2025-06-12T21:14:43.672Z"
"updatedAt": "2025-07-18T04:43:35.482Z"
},
"piyush-makhijani": {
"id": "piyush-makhijani",
Expand All @@ -236,7 +236,7 @@
"isSecretary": false,
"isCoordinator": false,
"createdAt": "2023-01-01T00:00:00Z",
"updatedAt": "2025-06-12T21:14:43.672Z"
"updatedAt": "2025-07-18T04:43:35.482Z"
},
"satvik-kadian": {
"id": "satvik-kadian",
Expand All @@ -251,7 +251,7 @@
"isSecretary": false,
"isCoordinator": false,
"createdAt": "2023-01-01T00:00:00Z",
"updatedAt": "2025-06-12T21:14:43.672Z"
"updatedAt": "2025-07-18T04:43:35.482Z"
},
"romit-mohane": {
"id": "romit-mohane",
Expand All @@ -266,7 +266,7 @@
"isSecretary": false,
"isCoordinator": false,
"createdAt": "2023-01-01T00:00:00Z",
"updatedAt": "2025-06-12T21:14:43.672Z"
"updatedAt": "2025-07-18T04:43:35.482Z"
},
"akshit-chhabra": {
"id": "akshit-chhabra",
Expand All @@ -281,7 +281,7 @@
"isSecretary": false,
"isCoordinator": false,
"createdAt": "2023-01-01T00:00:00Z",
"updatedAt": "2025-06-12T21:14:43.672Z"
"updatedAt": "2025-07-18T04:43:35.482Z"
},
"vishal-boliwal": {
"id": "vishal-boliwal",
Expand All @@ -296,7 +296,7 @@
"isSecretary": false,
"isCoordinator": false,
"createdAt": "2023-01-01T00:00:00Z",
"updatedAt": "2025-06-12T21:14:43.672Z"
"updatedAt": "2025-07-18T04:43:35.482Z"
},
"dhru-harsh": {
"id": "dhru-harsh",
Expand All @@ -311,7 +311,7 @@
"isSecretary": false,
"isCoordinator": false,
"createdAt": "2023-01-01T00:00:00Z",
"updatedAt": "2025-06-12T21:14:43.672Z"
"updatedAt": "2025-07-18T04:43:35.482Z"
},
"srushti-dandekar": {
"id": "srushti-dandekar",
Expand All @@ -326,7 +326,7 @@
"isSecretary": false,
"isCoordinator": false,
"createdAt": "2023-01-01T00:00:00Z",
"updatedAt": "2025-06-12T21:14:43.672Z"
"updatedAt": "2025-07-18T04:43:35.482Z"
},
"harshal-rana": {
"id": "harshal-rana",
Expand All @@ -340,6 +340,6 @@
"isSecretary": false,
"isCoordinator": false,
"createdAt": "2023-01-01T00:00:00Z",
"updatedAt": "2025-06-12T21:14:43.672Z"
"updatedAt": "2025-07-18T04:43:35.482Z"
}
}
6 changes: 5 additions & 1 deletion src/lib/firebase-admin.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Firebase Admin SDK configuration for server-side operations
import { initializeApp, getApps, cert, ServiceAccount } from 'firebase-admin/app';
import { getStorage } from 'firebase-admin/storage';
import { getAuth } from 'firebase-admin/auth';

// Parse the service account key from environment variable
const getServiceAccount = (): ServiceAccount | null => {
Expand All @@ -22,6 +23,7 @@ const getServiceAccount = (): ServiceAccount | null => {
// Initialize Firebase Admin (singleton pattern)
let adminStorage: any = null;
let bucket: any = null;
let auth: any = null;

try {
if (getApps().length === 0) {
Expand All @@ -34,6 +36,7 @@ try {
});
adminStorage = getStorage();
bucket = adminStorage.bucket();
auth = getAuth();
} catch (error) {
console.warn('Failed to initialize Firebase Admin:', error);
}
Expand All @@ -42,10 +45,11 @@ try {
// Use existing app
adminStorage = getStorage();
bucket = adminStorage.bucket();
auth = getAuth();
}
} catch (error) {
console.warn('Firebase Admin initialization error:', error);
}

// Export storage instance (may be null if not configured)
export { adminStorage, bucket };
export { adminStorage, bucket, auth };