Skip to content

Commit 0977578

Browse files
committed
package.json: Use UI5 Builder PoC feature branch
1 parent 89aad7e commit 0977578

File tree

3 files changed

+116
-496
lines changed

3 files changed

+116
-496
lines changed

lib/cli/commands/serve.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ serve.handler = async function(argv) {
103103
const serverConfig = {
104104
port,
105105
changePortIfInUse,
106-
h2: argv.h2 || argv.proxy,
106+
h2: argv.h2,
107107
useProxy: argv.proxy,
108108
simpleIndex: !!argv.simpleIndex,
109109
acceptRemoteConnections: !!argv.acceptRemoteConnections,
@@ -113,15 +113,15 @@ serve.handler = async function(argv) {
113113
cdnUrl
114114
};
115115

116-
if (serverConfig.h2) {
116+
if (serverConfig.h2 || argv.proxy) {
117117
const {key, cert} = await ui5Server.sslUtil.getSslCertificate(serverConfig.key, serverConfig.cert);
118118
serverConfig.key = key;
119119
serverConfig.cert = cert;
120120
}
121121

122122
const {h2, port: actualPort} = await server.serve(tree, serverConfig);
123123

124-
const protocol = h2 ? "https" : "http";
124+
const protocol = (h2 || argv.proxy) ? "https" : "http";
125125
let browserUrl = protocol + "://localhost:" + actualPort;
126126
console.log("Server started");
127127
console.log("URL: " + browserUrl);

0 commit comments

Comments
 (0)