File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -17,14 +17,15 @@ packageJson('parse-dashboard', 'latest').then(latestPackage => {
17
17
} ) ;
18
18
19
19
function getMount ( req ) {
20
- let url = req . url ;
21
- let originalUrl = req . originalUrl ;
22
- var mountPathLength = req . originalUrl . length - req . url . length ;
23
- var mountPath = req . originalUrl . slice ( 0 , mountPathLength ) ;
24
- if ( ! mountPath . endsWith ( '/' ) ) {
25
- mountPath += '/' ;
20
+ const url = req . url ;
21
+ const originalUrl = req . originalUrl ;
22
+ const mountPath = process . env . MOUNT_PATH || '' ;
23
+ const mountPathLength = req . originalUrl . length - req . url . length ;
24
+ let mountPathLocal = req . originalUrl . slice ( 0 , mountPathLength ) ;
25
+ if ( ! mountPathLocal . endsWith ( '/' ) ) {
26
+ mountPathLocal += '/' ;
26
27
}
27
- return mountPath ;
28
+ return mountPath + mountPathLocal ;
28
29
}
29
30
30
31
function checkIfIconsExistForApps ( apps , iconsFolder ) {
You can’t perform that action at this time.
0 commit comments