aboutsummaryrefslogtreecommitdiff
path: root/vnext/server
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-10-30 01:09:43 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:58 +0300
commit11c8ffc1248edeba1ed9de6221aaf9ef1df75f23 (patch)
tree57a4b7408b081df7d91b3105e2edf2622e7085f2 /vnext/server
parent5e53e6d06e8d18f0871dfa673acd100c2f2e9e7a (diff)
Read Sape token from the config
Diffstat (limited to 'vnext/server')
-rw-r--r--vnext/server/sape.js3
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 */