ryu-js / config.js
randydev's picture
Rename config/config.js to config.js
dd9681b verified
raw
history blame
336 Bytes
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
};