File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 211
211
logLevel : options . logLevel ,
212
212
server : {
213
213
open : options . open ,
214
- strictPort : options . strictPort
214
+ strictPort : options . strictPort ,
215
+ https : options . https
215
216
}
216
217
} ,
217
218
'serve' ,
222
223
cleanOptions ( options ) as {
223
224
host ?: string
224
225
port ?: number
225
- https ?: boolean
226
226
}
227
227
)
228
228
} catch ( e ) {
Original file line number Diff line number Diff line change @@ -18,13 +18,13 @@ import { resolveHostname } from './utils'
18
18
19
19
export async function preview (
20
20
config : ResolvedConfig ,
21
- serverOptions : { host ?: string ; port ?: number ; https ?: boolean }
21
+ serverOptions : { host ?: string ; port ?: number }
22
22
) : Promise < void > {
23
23
const app = connect ( ) as Connect . Server
24
24
const httpServer = await resolveHttpServer (
25
25
config . server ,
26
26
app ,
27
- serverOptions . https === false ? undefined : await resolveHttpsConfig ( config )
27
+ await resolveHttpsConfig ( config )
28
28
)
29
29
30
30
// cors
You can’t perform that action at this time.
0 commit comments