Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 34b7dbfdc3 | |||
| edb5d58bb4 | |||
| 34d7c2a77f | |||
| 46360a2453 | |||
| a7201fbb8c |
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "site-gateway",
|
"name": "site-gateway",
|
||||||
"version": "0.11.38",
|
"version": "0.11.43",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "Site Gateway: simple self-hosted website publishing, reverse proxying, and automatic HTTPS.",
|
"description": "Site Gateway: simple self-hosted website publishing, reverse proxying, and automatic HTTPS.",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|||||||
+2
-24
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+2
-1
@@ -1014,7 +1014,8 @@ app.use(express.json());
|
|||||||
app.use(express.urlencoded({ extended: false }));
|
app.use(express.urlencoded({ extended: false }));
|
||||||
app.get(["/", "/index.html"], (req, res) => {
|
app.get(["/", "/index.html"], (req, res) => {
|
||||||
const html = fs.readFileSync(path.join(publicDir, "index.html"), "utf8")
|
const html = fs.readFileSync(path.join(publicDir, "index.html"), "utf8")
|
||||||
.replace(/\/(app|features)\.js\?v=[^"']+/g, `/$1.js?v=${appVersion}`);
|
.replace(/\/(app|features)\.js\?v=[^"']+/g, `/$1.js?v=${appVersion}`)
|
||||||
|
.replace(/\/styles\.css\?v=[^"']+/g, `/styles.css?v=${appVersion}`);
|
||||||
res.type("html").send(html);
|
res.type("html").send(html);
|
||||||
});
|
});
|
||||||
app.use(express.static(publicDir));
|
app.use(express.static(publicDir));
|
||||||
|
|||||||
Reference in New Issue
Block a user