mirror of
https://github.com/valitydev/control-center.git
synced 2024-11-06 02:25:17 +00:00
rename PROXY_TARGET
This commit is contained in:
parent
13ef3657a8
commit
0c88617427
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user