diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-06-03 22:08:03 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-06-03 22:08:03 +0200 |
commit | 4a6995be18b15de1834a39c8921a0e4109671bb6 (patch) | |
tree | b659661cea33687fcc6bd8fc2251cb7a15ab9f9d /server.js | |
parent | 468892541175f9662f8b1b977e819dc1a496f282 (diff) | |
download | PeerTube-4a6995be18b15de1834a39c8921a0e4109671bb6.tar.gz PeerTube-4a6995be18b15de1834a39c8921a0e4109671bb6.tar.zst PeerTube-4a6995be18b15de1834a39c8921a0e4109671bb6.zip |
First draft to use webpack instead of systemjs
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 ----------- |