Skip to content

Commit f65abb4

Browse files
committed
package.json: Use UI5 Builder PoC feature branch
1 parent dcf7692 commit f65abb4

File tree

3 files changed

+5899
-20910
lines changed

3 files changed

+5899
-20910
lines changed

lib/cli/commands/serve.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ serve.handler = async function(argv) {
115115
const serverConfig = {
116116
port,
117117
changePortIfInUse,
118-
h2: argv.h2 || argv.proxy,
118+
h2: argv.h2,
119119
useProxy: argv.proxy,
120120
simpleIndex: !!argv.simpleIndex,
121121
acceptRemoteConnections: !!argv.acceptRemoteConnections,
@@ -125,15 +125,15 @@ serve.handler = async function(argv) {
125125
cdnUrl
126126
};
127127

128-
if (serverConfig.h2) {
128+
if (serverConfig.h2 || argv.proxy) {
129129
const {key, cert} = await ui5Server.sslUtil.getSslCertificate(serverConfig.key, serverConfig.cert);
130130
serverConfig.key = key;
131131
serverConfig.cert = cert;
132132
}
133133

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

136-
const protocol = h2 ? "https" : "http";
136+
const protocol = (h2 || argv.proxy) ? "https" : "http";
137137
let browserUrl = protocol + "://localhost:" + actualPort;
138138
console.log("Server started");
139139
console.log("URL: " + browserUrl);

0 commit comments

Comments
 (0)