feat: added budget from schedule
This commit is contained in:
9
lib/env.js
Normal file
9
lib/env.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import 'dotenv/config';
|
||||
|
||||
export function checkEnv(keys) {
|
||||
for (const key of keys) {
|
||||
if (!process.env[key]) {
|
||||
throw new Error(`${key} is not set`);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user