Skip to content

Commit

Permalink
fix: Remove defaullt value for https while creating a config
Browse files Browse the repository at this point in the history
  • Loading branch information
gkarat committed Oct 9, 2024
1 parent fc6ec6e commit 1de0831
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/config/src/lib/config.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe('should create dummy config with no options', () => {
static: {
directory: '/dist',
},
server: 'https',
server: 'http',
host: '0.0.0.0',
port: 8002,
hot: false,
Expand Down
4 changes: 2 additions & 2 deletions packages/config/src/lib/createConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const createConfig = ({
publicPath,
appEntry,
rootFolder,
https = true,
https,
mode,
appName,
useFileHash = true,
Expand Down Expand Up @@ -274,7 +274,7 @@ export const createConfig = ({
directory: `${rootFolder || ''}/dist`,
},
port: devServerPort,
server: _unstableSpdy ? 'spdy' : https ? 'https' : 'http',
server: _unstableSpdy ? 'spdy' : https || Boolean(useProxy) ? 'https' : 'http',
host: '0.0.0.0', // This shares on local network. Needed for docker.host.internal
hot: internalHotReload, // Use livereload instead of HMR which is spotty with federated modules
liveReload: !internalHotReload,
Expand Down

0 comments on commit 1de0831

Please sign in to comment.