From ea41b303a7d1b4750dc5b8ab2e3e36a0880a2012 Mon Sep 17 00:00:00 2001 From: Nate Carlson Date: Tue, 22 Dec 2020 11:41:51 -0600 Subject: [PATCH] Fix a few more instanes of frontend env variables. --- admin/src/client/System/System.js | 5 ----- frontend/src/client/Main/Main.js | 2 -- frontend/src/server/index.js | 3 ++- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/admin/src/client/System/System.js b/admin/src/client/System/System.js index 1dafa2a..52f7e8c 100644 --- a/admin/src/client/System/System.js +++ b/admin/src/client/System/System.js @@ -33,11 +33,6 @@ function planName(planType) { } } -var backend_server = - process.env["BACKEND_SERVER"] != null - ? process.env["BACKEND_SERVER"] - : "https://api.openmhz.com"; - class System extends Component { constructor(props) { super(props); diff --git a/frontend/src/client/Main/Main.js b/frontend/src/client/Main/Main.js index b2d757a..52dc524 100644 --- a/frontend/src/client/Main/Main.js +++ b/frontend/src/client/Main/Main.js @@ -53,8 +53,6 @@ const HomepageHeading = ({ mobile }) => ( ) -var site_name = process.env['SITE_NAME'] != null ? process.env['SITE_NAME'] : "OpenMHz"; - /* HomepageHeading.propTypes = { mobile: PropTypes.bool, diff --git a/frontend/src/server/index.js b/frontend/src/server/index.js index a134b60..da527d0 100644 --- a/frontend/src/server/index.js +++ b/frontend/src/server/index.js @@ -71,6 +71,7 @@ app.get("*", (req, res, next) => { const freePlanValue = ${freePlanValue}; const proPlanArchive = ${proPlanArchive}; const freePlanArchive = ${freePlanArchive}; + const site_name = "${site_name}";