Skip to content

Commit

Permalink
feat: https is enabled by default
Browse files Browse the repository at this point in the history
  • Loading branch information
liuweiGL committed Feb 25, 2022
1 parent ce4c4e0 commit d1b8197
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ const plugin = (options: ViteCertificateOptions = {}): Plugin => {
return {
name: PLUGIN_NAME,
apply: 'serve',
config: async ({ server, logLevel }) => {
if (!server?.https) {
config: async ({ server = {}, logLevel }) => {
if (server.https === false) {
return
}

Expand Down

0 comments on commit d1b8197

Please sign in to comment.