mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
fix hard links for new client (#8986)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import locals from '../../middlewares/locals';
|
||||
import { serveClient } from '../../libs/client';
|
||||
// import _ from 'lodash';
|
||||
// import md from 'habitica-markdown';
|
||||
// import nconf from 'nconf';
|
||||
@@ -92,7 +93,7 @@ api.getNewClient = {
|
||||
url: '/',
|
||||
noLanguage: true,
|
||||
async handler (req, res) {
|
||||
return res.sendFile('./dist-client/index.html', {root: `${__dirname}/../../../../`});
|
||||
return serveClient(res);
|
||||
},
|
||||
};
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user