Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

βž– Removes connect-history-api-fallback dep

Alicia Sykes381dcf7410b6
diff --git a/package.json b/package.json
index 13676677..cfe30dc8 100644
--- a/package.json
+++ b/package.json
@@ -37,7 +37,6 @@
"@sentry/vue": "^9.0.0",
"ajv": "^8.10.0",
"ajv-formats": "^3.0.1",
- "connect-history-api-fallback": "^1.6.0",
"crypto-js": "^4.2.0",
"dompurify": "^3.0.8",
"express": "^4.21.0",
diff --git a/services/app.js b/services/app.js
index 90bc0b3c..5e7ff024 100644
--- a/services/app.js
+++ b/services/app.js
@@ -17,7 +17,6 @@ const yaml = require('js-yaml');
/* Import Express + middleware functions */
const express = require('express');
const basicAuth = require('express-basic-auth');
-const history = require('connect-history-api-fallback');
/* Kick of some basic checks */
require('./update-checker'); // Checks if there are any updates available, prints message
@@ -254,7 +253,6 @@ const app = express()
.use(express.static(path.join(rootDir, process.env.USER_DATA_DIR || 'user-data')))
.use(express.static(path.join(rootDir, 'dist')))
.use(express.static(path.join(rootDir, 'public'), { index: 'initialization.html' }))
- .use(history())
// If no other route is matched, serve up the index.html with a 404 status
.use((req, res) => {
res.status(404).sendFile(path.join(rootDir, 'dist', 'index.html'), (err) => {
diff --git a/yarn.lock b/yarn.lock
index ad5b0a83..fd0be5b7 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -2253,11 +2253,6 @@ config-chain@^1.1.13:
ini "^1.3.4"
proto-list "~1.2.1"
-connect-history-api-fallback@^1.6.0:
- version "1.6.0"
- resolved "https://registry.yarnpkg.com/connect-history-api-fallback/-/connect-history-api-fallback-1.6.0.tgz#8b32089359308d111115d81cad3fceab888f97bc"
- integrity sha512-e54B99q/OUoH64zYYRf3HBP5z24G38h5D3qXu23JGRoigpX5Ss4r9ZnDk3g0Z8uQC2x2lPaJ+UlWBc1ZWBWdLg==
-
content-disposition@~0.5.4:
version "0.5.4"
resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.4.tgz#8b82b4efac82512a02bb0b1dcec9d2c5e8eb5bfe"