Skip to content

Commit

Permalink
fix(nuxi,schema): support devServer.https: true (#20498)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Apr 25, 2023
1 parent 24ce102 commit 4c200e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/nuxi/src/commands/dev.ts
Expand Up @@ -62,8 +62,8 @@ export default defineNuxtCommand({
hostname: args.host || args.h || process.env.NUXT_HOST || config.devServer.host,
https: (args.https !== false && (args.https || config.devServer.https))
? {
cert: args['ssl-cert'] || (config.devServer.https && config.devServer.https.cert) || undefined,
key: args['ssl-key'] || (config.devServer.https && config.devServer.https.key) || undefined
cert: args['ssl-cert'] || (typeof config.devServer.https !== 'boolean' && config.devServer.https.cert) || undefined,
key: args['ssl-key'] || (typeof config.devServer.https !== 'boolean' && config.devServer.https.key) || undefined
}
: false
})
Expand Down
2 changes: 1 addition & 1 deletion packages/schema/src/config/dev.ts
Expand Up @@ -18,7 +18,7 @@ export default defineUntypedSchema({
* ```
*
*
* @type {false | { key: string; cert: string }}
* @type {boolean | { key: string; cert: string }}
*
*/
https: false,
Expand Down

0 comments on commit 4c200e4

Please sign in to comment.