randydev commited on
Commit
343fb82
·
verified ·
1 Parent(s): 235ac5c

Update config.js

Browse files
Files changed (1) hide show
  1. config.js +4 -0
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,