Skip to content

Commit

Permalink
Merge pull request #1327 from stof/devserver_string_server
Browse files Browse the repository at this point in the history
Fix compat with configuring the devserver server as a string
  • Loading branch information
stof authored Sep 5, 2024
2 parents 51db4d9 + f49b687 commit 2b10db0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/config-generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ class ConfigGenerator {
if (this.webpackConfig.useDevServer() &&
(
devServerConfig.https
|| (devServerConfig.server && devServerConfig.server.type === 'https')
|| devServerConfig.server === 'https'
|| (typeof devServerConfig.server === 'object' && devServerConfig.server.type === 'https')
|| this.webpackConfig.runtimeConfig.devServerHttps
)) {
this.webpackConfig.runtimeConfig.devServerFinalIsHttps = true;
Expand Down

0 comments on commit 2b10db0

Please sign in to comment.