powr-sdk-api 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config.js +5 -3
- package/package.json +1 -1
package/dist/config.js
CHANGED
|
@@ -6,15 +6,17 @@
|
|
|
6
6
|
const getConfig = () => {
|
|
7
7
|
const config = {
|
|
8
8
|
mongoUri: process.env.MONGODB_URI,
|
|
9
|
-
|
|
9
|
+
projectId: process.env.PROJECT_ID,
|
|
10
|
+
jwtToken: process.env.JWT_TOKEN,
|
|
11
|
+
storageBucket: process.env.STORAGE_BUCKET
|
|
10
12
|
};
|
|
11
13
|
|
|
12
14
|
// Validate required configs
|
|
13
15
|
if (!config.mongoUri) {
|
|
14
16
|
throw new Error('MONGODB_URI environment variable is required');
|
|
15
17
|
}
|
|
16
|
-
if (!config.
|
|
17
|
-
throw new Error('
|
|
18
|
+
if (!config.projectId) {
|
|
19
|
+
throw new Error('PROJECT_ID environment variable is required');
|
|
18
20
|
}
|
|
19
21
|
return config;
|
|
20
22
|
};
|