X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server.js;h=4c8e8cfd39d03b18614e57fb56a1c1d143582871;hb=07d932038745e773359fa87bac6be70523f593ee;hp=02c0d53cd7ef949fe0592aac77ce3bffbcc9c984;hpb=41a2aee38cf812510010da09de9bae53590ec119;p=github%2FChocobozzz%2FPeerTube.git 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 app.use(apiRoute, routes.api) // Static files -app.use('/client', express.static(path.join(__dirname, '/client'), { maxAge: 0 })) +app.use('/client', express.static(path.join(__dirname, '/client/dist'), { maxAge: 0 })) // 404 for static files not found app.use('/client/*', function (req, res, next) { res.sendStatus(404) @@ -76,7 +76,7 @@ app.use(constants.THUMBNAILS_STATIC_PATH, express.static(thumbnailsPhysicalPath, // Client application app.use('/*', function (req, res, next) { - res.sendFile(path.join(__dirname, 'client/index.html')) + res.sendFile(path.join(__dirname, 'client/dist/index.html')) }) // ----------- Tracker -----------