Update envar flow

This commit is contained in:
Dunemask 2021-08-21 22:20:04 -06:00
parent e02f48f358
commit c524c985c1
6 changed files with 12 additions and 34 deletions

View file

@ -1,6 +1,6 @@
const { createProxyMiddleware } = require("http-proxy-middleware");
const cairoUrl = process.env.CAIRO_URL ?? "http://cairo.dunestorm.net:52000";
const nubianUrl = process.env.NUBIAN_URL ?? "http://nubian.dunestorm.net:52001";
const cairoUrl = process.env.REACT_APP_CAIRO_PUBLIC_URL;
const nubianUrl = process.env.NUBIAN_INTERNAL_URL;
module.exports = (app) => {
// Cairo Proxy
app.use("/cairo", createProxyMiddleware({ target: cairoUrl }));