mirror of
https://github.com/yldio/copilot.git
synced 2024-11-13 06:40:06 +02:00
15 lines
344 B
JavaScript
15 lines
344 B
JavaScript
|
const json = (() => {
|
||
|
try {
|
||
|
return require('../credentials.json');
|
||
|
} catch (err) {
|
||
|
return {};
|
||
|
}
|
||
|
})();
|
||
|
|
||
|
module.exports = {
|
||
|
url: process.env.SDC_URL || json.url || '',
|
||
|
account: process.env.SDC_ACCOUNT || json.account || '',
|
||
|
user: process.env.SDC_USER || json.user || '',
|
||
|
keyId: process.env.SDC_KEY_ID || json.keyId || ''
|
||
|
};
|