mirror of
https://github.com/yldio/copilot.git
synced 2024-11-13 06:40:06 +02:00
cloudapi: fall back to .env file
This commit is contained in:
parent
5c0d8e4601
commit
adb0ffb476
@ -10,6 +10,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"bunyan": "^1.8.1",
|
||||
"dotenv": "^2.0.0",
|
||||
"express": "^4.14.0",
|
||||
"express-graphql": "^0.5.4",
|
||||
"got": "^6.5.0",
|
||||
|
@ -2,6 +2,9 @@ const json = (() => {
|
||||
try {
|
||||
return require('../credentials.json');
|
||||
} catch (err) {
|
||||
require('dotenv').config({
|
||||
path: '../.env'
|
||||
});
|
||||
return {};
|
||||
}
|
||||
})();
|
||||
|
@ -1412,6 +1412,10 @@ dot-prop@^3.0.0:
|
||||
dependencies:
|
||||
is-obj "^1.0.0"
|
||||
|
||||
dotenv:
|
||||
version "2.0.0"
|
||||
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-2.0.0.tgz#bd759c357aaa70365e01c96b7b0bec08a6e0d949"
|
||||
|
||||
dtrace-provider@^0.7.0, dtrace-provider@~0.7:
|
||||
version "0.7.0"
|
||||
resolved "https://registry.yarnpkg.com/dtrace-provider/-/dtrace-provider-0.7.0.tgz#9ac6d3eb78ffbe90385063e6d14dfe7bc377005d"
|
||||
|
Loading…
Reference in New Issue
Block a user