rename PROXY_TARGET

This commit is contained in:
Rinat Arsaev 2022-07-20 15:03:36 +03:00
parent 13ef3657a8
commit 0c88617427

View File

@ -1,7 +1,7 @@
require('dotenv').config(); require('dotenv').config();
const { BASE_TARGET } = process.env; const { PROXY_TARGET } = process.env;
const REQUIRED_ENV = [BASE_TARGET]; const REQUIRED_ENV = [PROXY_TARGET];
if (REQUIRED_ENV.findIndex((e) => !e) !== -1) { if (REQUIRED_ENV.findIndex((e) => !e) !== -1) {
throw new Error('[proxy.conf.js] Set required environment variables!'); throw new Error('[proxy.conf.js] Set required environment variables!');
@ -19,7 +19,7 @@ module.exports = [
'/payout/management', '/payout/management',
'/wachter', '/wachter',
], ],
target: BASE_TARGET, target: PROXY_TARGET,
secure: false, secure: false,
logLevel: 'debug', logLevel: 'debug',
changeOrigin: true, changeOrigin: true,