fix: path to static directory could be changed (#942)
This commit is contained in:
parent
d6d1e4adb9
commit
5557ce5787
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue