Update config.js
Browse files
config.js
CHANGED
@@ -6,6 +6,10 @@ const dbUri = process.env.DB_URI;
|
|
6 |
const HUGGING_TOKEN = process.env.HUGGING_TOKEN;
|
7 |
const GoogleAPIKey = process.env.GOOGLE_API_KEY;
|
8 |
|
|
|
|
|
|
|
|
|
9 |
export {
|
10 |
dbUri,
|
11 |
HUGGING_TOKEN,
|
|
|
6 |
const HUGGING_TOKEN = process.env.HUGGING_TOKEN;
|
7 |
const GoogleAPIKey = process.env.GOOGLE_API_KEY;
|
8 |
|
9 |
+
if (!dbUri && !HUGGING_TOKEN && !GoogleAPIKey) {
|
10 |
+
throw new Error("Missing variables required");
|
11 |
+
}
|
12 |
+
|
13 |
export {
|
14 |
dbUri,
|
15 |
HUGGING_TOKEN,
|