fix: path to static directory could be changed (#942)

This commit is contained in:
Viktor 2018-08-24 21:16:08 +05:00 committed by Juan Picado @jotadeveloper
parent d6d1e4adb9
commit 5557ce5787
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ module.exports = function(config, auth, storage) {
// Static
router.get('/-/static/:filename', function(req, res, next) {
const file = `${env.APP_ROOT}/static/${req.params.filename}`;
const file = `${env.DIST_PATH}/${req.params.filename}`;
res.sendFile(file, function(err) {
if (!err) {
return;