aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-06-03 22:08:03 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-06-03 22:08:03 +0200
commit4a6995be18b15de1834a39c8921a0e4109671bb6 (patch)
treeb659661cea33687fcc6bd8fc2251cb7a15ab9f9d /server.js
parent468892541175f9662f8b1b977e819dc1a496f282 (diff)
downloadPeerTube-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.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 -----------