From e78a03a8672f1ddef98d6f74ae58216f5b10ec70 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Tue, 6 Sep 2022 12:56:16 +0800 Subject: [PATCH] chore: remove unused code in XcLibGui.js this is no longer required as we are using hash-based routing --- packages/nc-lib-gui/lib/XcLibGui.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/nc-lib-gui/lib/XcLibGui.js b/packages/nc-lib-gui/lib/XcLibGui.js index 418d0fdf6b..0f75533619 100644 --- a/packages/nc-lib-gui/lib/XcLibGui.js +++ b/packages/nc-lib-gui/lib/XcLibGui.js @@ -10,11 +10,6 @@ class XcLibGui { // Express will serve up production assets i.e. main.js router.use(dashboardPath, express.static(path.join(__dirname, 'dist'))); - // If Express doesn't recognize route serve index.html - router.get(`${dashboardPath}/*`, (_req, res) => { - res.sendFile(path.join(__dirname, 'dist', 'index.html')); - }); - return router; } }