mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-13 17:27:37 -05:00
Fix a few more instanes of frontend env variables.
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user