From 69ab38e51710d7f7af3771c5c8d751e4e44820f6 Mon Sep 17 00:00:00 2001 From: Daniel Kovacs <daniel.kovacs@inepex.com> Date: Fri, 6 Dec 2019 03:32:49 +0100 Subject: [PATCH] Fix --- server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.js b/server.js index 0c7372e..033c999 100644 --- a/server.js +++ b/server.js @@ -10,12 +10,12 @@ const axios = require('axios'); const app = express(); const path = require('path'); -app.use(express.static(path.join(__dirname, 'static'))); +app.use(express.static(path.join(__dirname, 'frontend/build'))); app.get('/*', (req, res) => { console.log(__dirname); - res.sendFile(path.join(__dirname, 'static', 'index.html')); + res.sendFile(path.join(__dirname, 'frontend/build', 'index.html')); }); app.use(bodyParser.json()); -- GitLab