Added BASEPATH support to all entry points.
Signed-off-by: James Ketrenos <james_gitlab@ketrenos.com>
This commit is contained in:
parent
01ed75f306
commit
39f87a596f
@ -1,5 +1,5 @@
|
|||||||
<html>
|
<html>
|
||||||
<base href="/">
|
<script>'<base href="BASEPATH">';</script>
|
||||||
<body>
|
<body>
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
|
@ -41,8 +41,6 @@
|
|||||||
|
|
||||||
<script src="fetch.js"></script>
|
<script src="fetch.js"></script>
|
||||||
|
|
||||||
<script>'<base href="/BASEPATH/">';</script>
|
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
body,* {
|
body,* {
|
||||||
font-family: Helvetica Neue,Helvetica,Arial,sans-serif;
|
font-family: Helvetica Neue,Helvetica,Arial,sans-serif;
|
||||||
|
@ -40,6 +40,8 @@ app.set("basePath", basePath);
|
|||||||
* set in the headers */
|
* set in the headers */
|
||||||
app.set("trust proxy", true);
|
app.set("trust proxy", true);
|
||||||
|
|
||||||
|
app.use(basePath, require("./routes/basepath.js"));
|
||||||
|
|
||||||
/* Handle static files first so excessive logging doesn't occur */
|
/* Handle static files first so excessive logging doesn't occur */
|
||||||
app.use(basePath, express.static("frontend", { index: false }));
|
app.use(basePath, express.static("frontend", { index: false }));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user