aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.js
diff options
context:
space:
mode:
Diffstat (limited to 'server.js')
-rw-r--r--server.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/server.js b/server.js
index 02c0d53cd..4c8e8cfd3 100644
--- a/server.js
+++ b/server.js
@@ -64,7 +64,7 @@ const apiRoute = '/api/' + constants.API_VERSION
64app.use(apiRoute, routes.api) 64app.use(apiRoute, routes.api)
65 65
66// Static files 66// Static files
67app.use('/client', express.static(path.join(__dirname, '/client'), { maxAge: 0 })) 67app.use('/client', express.static(path.join(__dirname, '/client/dist'), { maxAge: 0 }))
68// 404 for static files not found 68// 404 for static files not found
69app.use('/client/*', function (req, res, next) { 69app.use('/client/*', function (req, res, next) {
70 res.sendStatus(404) 70 res.sendStatus(404)
@@ -76,7 +76,7 @@ app.use(constants.THUMBNAILS_STATIC_PATH, express.static(thumbnailsPhysicalPath,
76 76
77// Client application 77// Client application
78app.use('/*', function (req, res, next) { 78app.use('/*', function (req, res, next) {
79 res.sendFile(path.join(__dirname, 'client/index.html')) 79 res.sendFile(path.join(__dirname, 'client/dist/index.html'))
80}) 80})
81 81
82// ----------- Tracker ----------- 82// ----------- Tracker -----------