Skip to content

Commit

Permalink
Fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
mottox2 committed Mar 20, 2020
1 parent e1eb7b3 commit 59a0935
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/gatsby/src/commands/develop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ import {
showFeedbackRequest,
} from "../utils/feedback"

import { BuildHTMLStage, IProgram } from "./types"
import { BuildHTMLStage, IProgram, ICert } from "./types"

// checks if a string is a valid ip
const REGEX_IP = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])$/
Expand Down Expand Up @@ -401,12 +401,12 @@ module.exports = async (program: IProgram): Promise<void> => {
)
}

program.ssl = await getSslCert({
program.ssl = (await getSslCert({
name: sslHost,
certFile: program[`cert-file`],
keyFile: program[`key-file`],
directory: program.directory,
})
})) as ICert
}

// Start bootstrap process.
Expand Down

0 comments on commit 59a0935

Please sign in to comment.