Skip to content
Snippets Groups Projects
Commit e6004392 authored by i-vall's avatar i-vall
Browse files

feat: export of key and url as env variables

parent 16809cc5
Branches
No related tags found
No related merge requests found
......@@ -32,6 +32,15 @@ Create a `konnector-dev-config.json` file at the root with your test credentials
```
Then :
Define the base url and the API authentication key as environment variable :
```sh
export API_AUTH_KEY=<the_api_authentication_key>
export BASE_URL=<the_api_base_url>
```
Then :
```sh
yarn
yarn standalone
......
......@@ -11,9 +11,8 @@ const moment = require('moment')
//const moment = require('moment')
//require('request-debug')(rp)
const baseUrl = 'https://agence-rec.eaudugrandlyon.com/ws'
const apiAuthKey =
'abe55f32cbcb403b3a121637c67d7570aadd62d1abb9696a6dcacdb87993e034'
const baseUrl = process.env.BASE_URL
const apiAuthKey = process.env.API_AUTH_KEY
module.exports = new BaseKonnector(start)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment