We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6985639 commit 54d9a44Copy full SHA for 54d9a44
packages/scripts/src/scripts/Server.ts
@@ -281,7 +281,10 @@ export class Server {
281
* Get URL to network IP where the server is alive.
282
*/
283
public getServerUrl(): string {
284
- return `http:${this.webpackConfig.getServerUrl()}`;
+ const protocol = this.serverConfig.proxy.startsWith('https')
285
+ ? 'https'
286
+ : 'http';
287
+ return `${protocol}:${this.webpackConfig.getServerUrl()}`;
288
}
289
290
/**
0 commit comments