diff --git a/api/server/index.js b/api/server/index.js index a096901f88..4b59191e56 100644 --- a/api/server/index.js +++ b/api/server/index.js @@ -23,7 +23,7 @@ const projectPath = path.join(__dirname, '..', '..', 'client'); app.use(errorController); app.use(cors()); app.use(express.json()); - app.use(express.static(path.join(projectPath, 'public'))); + app.use(express.static(path.join(projectPath, 'dist'))); app.set('trust proxy', 1); // trust first proxy app.use( session({ @@ -73,7 +73,7 @@ const projectPath = path.join(__dirname, '..', '..', 'client'); }); app.get('/*', routes.authenticatedOrRedirect, function (req, res) { - res.sendFile(path.join(projectPath, 'public', 'index.html')); + res.sendFile(path.join(projectPath, 'dist', 'index.html')); }); app.listen(port, host, () => { diff --git a/client/public/index.html b/client/index.html similarity index 87% rename from client/public/index.html rename to client/index.html index cc2670e745..d81d0bf3d4 100644 --- a/client/public/index.html +++ b/client/index.html @@ -26,15 +26,16 @@ />