diff options
Diffstat (limited to 'server.js')
-rw-r--r-- | server.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -64,7 +64,7 @@ const apiRoute = '/api/' + constants.API_VERSION | |||
64 | app.use(apiRoute, routes.api) | 64 | app.use(apiRoute, routes.api) |
65 | 65 | ||
66 | // Static files | 66 | // Static files |
67 | app.use('/client', express.static(path.join(__dirname, '/client'), { maxAge: 0 })) | 67 | app.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 |
69 | app.use('/client/*', function (req, res, next) { | 69 | app.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 |
78 | app.use('/*', function (req, res, next) { | 78 | app.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 ----------- |