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
No related branches found
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 ...@@ -32,6 +32,15 @@ Create a `konnector-dev-config.json` file at the root with your test credentials
``` ```
Then : 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 ```sh
yarn yarn
yarn standalone yarn standalone
......
...@@ -11,9 +11,8 @@ const moment = require('moment') ...@@ -11,9 +11,8 @@ const moment = require('moment')
//const moment = require('moment') //const moment = require('moment')
//require('request-debug')(rp) //require('request-debug')(rp)
const baseUrl = 'https://agence-rec.eaudugrandlyon.com/ws' const baseUrl = process.env.BASE_URL
const apiAuthKey = const apiAuthKey = process.env.API_AUTH_KEY
'abe55f32cbcb403b3a121637c67d7570aadd62d1abb9696a6dcacdb87993e034'
module.exports = new BaseKonnector(start) 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