File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -43,15 +43,14 @@ export default async function bootstrap(apiPort?: number): Promise<IApp> {
43
43
app . use ( bodyParser . urlencoded ( { limit : '512mb' , extended : true } ) ) ;
44
44
app . enableCors ( ) ;
45
45
46
- let prefix = serverConfig . globalPrefix ;
47
- if ( serverConfig . proxyPath ) {
48
- prefix = `${ serverConfig . proxyPath } /${ prefix } ` ;
49
- }
50
-
51
- app . setGlobalPrefix ( prefix , { exclude : [ '/' ] } ) ;
46
+ if ( process . env . RI_APP_TYPE !== 'electron' ) {
47
+ let prefix = serverConfig . globalPrefix ;
48
+ if ( serverConfig . proxyPath ) {
49
+ prefix = `${ serverConfig . proxyPath } /${ prefix } ` ;
50
+ }
52
51
52
+ app . setGlobalPrefix ( prefix , { exclude : [ '/' ] } ) ;
53
53
54
- if ( process . env . RI_APP_TYPE !== 'electron' ) {
55
54
SwaggerModule . setup (
56
55
serverConfig . docPrefix ,
57
56
app ,
@@ -65,6 +64,7 @@ export default async function bootstrap(apiPort?: number): Promise<IApp> {
65
64
} ,
66
65
) ;
67
66
} else {
67
+ app . setGlobalPrefix ( serverConfig . globalPrefix ) ;
68
68
app . useWebSocketAdapter ( new WindowsAuthAdapter ( app ) ) ;
69
69
}
70
70
You can’t perform that action at this time.
0 commit comments