From 11c8ffc1248edeba1ed9de6221aaf9ef1df75f23 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 30 Oct 2022 01:09:43 +0300 Subject: Read Sape token from the config --- vnext/server/sape.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'vnext') 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 */ -- cgit v1.2.3