File size: 336 Bytes
0f6a596
 
 
 
 
 
 
 
343fb82
 
 
 
0f6a596
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import dotenv from 'dotenv';

dotenv.config();

const dbUri = process.env.DB_URI;
const HUGGING_TOKEN = process.env.HUGGING_TOKEN;
const GoogleAPIKey = process.env.GOOGLE_API_KEY;

if (!dbUri && !HUGGING_TOKEN && !GoogleAPIKey) {
    throw new Error("Missing variables required");
}

export {
  dbUri,
  HUGGING_TOKEN,
  GoogleAPIKey
};