const { readFileSync } = require('fs');
const httpProxy = require('http-proxy');

httpProxy
  .createServer({
    target: {
      host: 'localhost',
      port: 3000,
    },
    ssl: {
      key: readFileSync('./dev/key.pem'),
      cert: readFileSync('./dev/cert.pem'),
    },
  })
  .listen(443);

@@ -75,16 +75,296 @@
 oxy');%0A%0A
+/**%0A * Idles main thread for given amount of time%0A * @param %7Bnumber%7D time Time to pause in milliseconds%0A * @returns %7BPromise%7D Promise that resolves after setTimeout%0A */%0Afunction sleep(time) %7B%0A  return new Promise(resolve =%3E setTimeout(resolve, time));%0A%7D%0A%0Asleep(5000).then(() =%3E%0A  
 httpProx
@@ -365,16 +365,18 @@
 tpProxy%0A
+  
   .creat
@@ -389,16 +389,18 @@
 r(%7B%0A    
+  
 target: 
@@ -397,24 +397,26 @@
   target: %7B%0A
+  
       host: 
@@ -434,16 +434,18 @@
 ,%0A      
+  
 port: 30
@@ -448,16 +448,18 @@
 : 3000,%0A
+  
     %7D,%0A 
@@ -465,15 +465,19 @@
     
+  
 ssl: %7B%0A
+  
     
@@ -510,24 +510,26 @@
 /key.pem'),%0A
+  
       cert: 
@@ -568,18 +568,24 @@
     
+  
 %7D,%0A  
+ 
+ 
 %7D)%0A  
+ 
+ 
 .lis
@@ -591,11 +591,14 @@
 sten(443
+),%0A
 );%0A

Add sleep function with JSDoc comment to server.js to avoid proxy server being ready before next dev is