Skip to content

Commit

Permalink
Upgrade to mkcert 1.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
daquinoaldo committed Dec 4, 2020
1 parent 9828a1a commit a2282f9
Show file tree
Hide file tree
Showing 4 changed files with 155 additions and 319 deletions.
2 changes: 1 addition & 1 deletion certs.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const exec = require("child_process").exec
const https = require("https")
const getAppDataPath = require("appdata-path")

const MKCERT_VERSION = "v1.4.1"
const MKCERT_VERSION = "v1.4.3"
const CERT_PATH = getAppDataPath("https-localhost")

// check for updates
Expand Down
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ const fs = require("fs")
const http = require("http")
// spdy allows http2, while waiting express to support the http2 module
const https = process.env.NODE_ENV === "production"
? require("spdy") : require("https")
? require("spdy")
: require("https")
const express = require("express")
const cors = require("cors")
const getCerts = require(path.resolve(__dirname, "certs.js")).getCerts
Expand Down
Loading

0 comments on commit a2282f9

Please sign in to comment.