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; } }