diff options
author | Vitaly Takmazov | 2022-10-30 01:09:43 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:58 +0300 |
commit | 11c8ffc1248edeba1ed9de6221aaf9ef1df75f23 (patch) | |
tree | 57a4b7408b081df7d91b3105e2edf2622e7085f2 | |
parent | 5e53e6d06e8d18f0871dfa673acd100c2f2e9e7a (diff) |
Read Sape token from the config
-rw-r--r-- | vnext/server/sape.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vnext/server/sape.js b/vnext/server/sape.js index d8c9e2ed..ad374f2b 100644 --- a/vnext/server/sape.js +++ b/vnext/server/sape.js @@ -1,8 +1,9 @@ import { parseStringPromise } from 'xml2js'; import axios from 'axios'; import { setupCache } from 'axios-cache-interceptor'; +import config from 'config'; -const token = process.env.SAPE_TOKEN; +const token = config.get('service.sape.token') || process.env.SAPE_TOKEN; /** @external Promise */ |