Enabling the https protocol #946
-
| 
         I started evaluating WMR to port a large React application over to it and created a project folder from scratch following this step list. Everything went fine and now I want to use the https protocol, but cannot find a way to set this up. Apparently there's no setting for this protocol and I couldn't find any documentation or help (searched the WMR site, this repository, Stackoverflow.com and finally the web). Here's my WMR config: import { defineConfig } from 'wmr';
// Full list of options: https://wmr.dev/docs/configuration
export default defineConfig((options) => {
    return {
        alias: {
            react: 'preact/compat',
            'react-dom': 'preact/compat'
        },
        out: "build",
        host: "localhost",
        port: 3301,
        sourcemap: true,
        debug: true,
    };
});I tried options like  Anyone here to help a complete newbie with WMR to get this task done?  | 
  
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
| 
         It's less than ideal naming, but the  wmr/packages/wmr/src/lib/http2.js Lines 4 to 16 in ab4b512  | 
  
Beta Was this translation helpful? Give feedback.
It's less than ideal naming, but the
--http2flag is in all reality a https flag.createSecureServerreturns atls.Serverinstance and, through its options, supports downgrading clients that are not able to support http2:wmr/packages/wmr/src/lib/http2.js
Lines 4 to 16 in ab4b512