mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 23:22:02 +00:00
fix(nuxi,schema): support devServer.https: true
(#20498)
This commit is contained in:
parent
24ce1022e9
commit
4c200e4a2a
@ -62,8 +62,8 @@ export default defineNuxtCommand({
|
|||||||
hostname: args.host || args.h || process.env.NUXT_HOST || config.devServer.host,
|
hostname: args.host || args.h || process.env.NUXT_HOST || config.devServer.host,
|
||||||
https: (args.https !== false && (args.https || config.devServer.https))
|
https: (args.https !== false && (args.https || config.devServer.https))
|
||||||
? {
|
? {
|
||||||
cert: args['ssl-cert'] || (config.devServer.https && config.devServer.https.cert) || undefined,
|
cert: args['ssl-cert'] || (typeof config.devServer.https !== 'boolean' && config.devServer.https.cert) || undefined,
|
||||||
key: args['ssl-key'] || (config.devServer.https && config.devServer.https.key) || undefined
|
key: args['ssl-key'] || (typeof config.devServer.https !== 'boolean' && config.devServer.https.key) || undefined
|
||||||
}
|
}
|
||||||
: false
|
: false
|
||||||
})
|
})
|
||||||
|
@ -18,7 +18,7 @@ export default defineUntypedSchema({
|
|||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @type {false | { key: string; cert: string }}
|
* @type {boolean | { key: string; cert: string }}
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
https: false,
|
https: false,
|
||||||
|
Loading…
Reference in New Issue
Block a user