fix rammerhead so that it actually works oops
This commit is contained in:
parent
025d7f0c50
commit
4030166454
1 changed files with 2 additions and 0 deletions
2
index.js
2
index.js
|
|
@ -40,6 +40,7 @@ const rammerheadScopes = [
|
||||||
];
|
];
|
||||||
|
|
||||||
const rammerheadSession = /^\/[a-z0-9]{32}/;
|
const rammerheadSession = /^\/[a-z0-9]{32}/;
|
||||||
|
const rh_path = "node_modules/rammerhead/src/client";
|
||||||
|
|
||||||
function shouldRouteRh(req) {
|
function shouldRouteRh(req) {
|
||||||
const url = new URL(req.url, "http://0.0.0.0");
|
const url = new URL(req.url, "http://0.0.0.0");
|
||||||
|
|
@ -80,6 +81,7 @@ app.use(compression());
|
||||||
app.use(express.static(path.join(process.cwd(), "static")));
|
app.use(express.static(path.join(process.cwd(), "static")));
|
||||||
app.use(express.static(path.join(process.cwd(), "build")));
|
app.use(express.static(path.join(process.cwd(), "build")));
|
||||||
app.use("/uv/", express.static(uvPath));
|
app.use("/uv/", express.static(uvPath));
|
||||||
|
app.use("/", express.static(rh_path));
|
||||||
app.use(express.json());
|
app.use(express.json());
|
||||||
app.use(
|
app.use(
|
||||||
express.urlencoded({
|
express.urlencoded({
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue