Fix a few more instanes of frontend env variables.

This commit is contained in:
Nate Carlson
2020-12-22 11:41:51 -06:00
parent e0351745b0
commit ea41b303a7
3 changed files with 2 additions and 8 deletions

View File

@@ -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 { class System extends Component {
constructor(props) { constructor(props) {
super(props); super(props);

View File

@@ -53,8 +53,6 @@ const HomepageHeading = ({ mobile }) => (
</Container> </Container>
) )
var site_name = process.env['SITE_NAME'] != null ? process.env['SITE_NAME'] : "OpenMHz";
/* /*
HomepageHeading.propTypes = { HomepageHeading.propTypes = {
mobile: PropTypes.bool, mobile: PropTypes.bool,

View File

@@ -71,6 +71,7 @@ app.get("*", (req, res, next) => {
const freePlanValue = ${freePlanValue}; const freePlanValue = ${freePlanValue};
const proPlanArchive = ${proPlanArchive}; const proPlanArchive = ${proPlanArchive};
const freePlanArchive = ${freePlanArchive}; const freePlanArchive = ${freePlanArchive};
const site_name = "${site_name}";
</script> </script>
<script src="${backend_server}/socket.io/socket.io.js"></script> <script src="${backend_server}/socket.io/socket.io.js"></script>
<script> <script>