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 {
constructor(props) {
super(props);

View File

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

View File

@@ -71,6 +71,7 @@ app.get("*", (req, res, next) => {
const freePlanValue = ${freePlanValue};
const proPlanArchive = ${proPlanArchive};
const freePlanArchive = ${freePlanArchive};
const site_name = "${site_name}";
</script>
<script src="${backend_server}/socket.io/socket.io.js"></script>
<script>
@@ -100,4 +101,4 @@ app.listen(app.get("port"), app.get("host"), (err) => {
} else {
console.log(`App listening on port ${app.get("port")} [${process.env.NODE_ENV} mode]`)
}
})
})