We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4eb2e18 commit aebd6ffCopy full SHA for aebd6ff
frontend/server/app.ts
@@ -74,7 +74,11 @@ export class UIServer {
74
* Stops the http server.
75
*/
76
close() {
77
- return this.httpServer && this.httpServer.close();
+ if (!!this.httpServer) {
78
+ this.httpServer.close();
79
+ }
80
+ this.httpServer = undefined;
81
+ return this;
82
}
83
84
@@ -158,7 +162,7 @@ function createUIServer(options: UIConfigs) {
158
162
console.log('Proxied request: ', (proxyReq as any).path);
159
163
},
160
164
pathRewrite: pathStr =>
161
- pathStr.startsWith(basePath) ? pathStr.substr(basePath.length, pathStr.length) : pathStr,
165
+ pathStr.startsWith(basePath) ? pathStr.substr(basePath.length, pathStr.length) : pathStr,
166
target: apiServerAddress,
167
}),
168
);
0 commit comments