Skip to content

Commit

Permalink
fix autoencrupt import
Browse files Browse the repository at this point in the history
  • Loading branch information
wmurphyrd committed Mar 23, 2021
1 parent 4fd8ca5 commit 216acf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ const sslOptions = {
cert: fs.readFileSync(path.join(__dirname, certPath)),
ca: caPath ? fs.readFileSync(path.join(__dirname, caPath)) : undefined
}
AutoEncryptPromise.then(async AutoEncrypt => {
AutoEncryptPromise.then(async ({ default: AutoEncrypt }) => {
const server = process.env.NODE_ENV === 'production'
? AutoEncrypt.https.createServer({ domains: [domain] }, app)
: https.createServer(sslOptions, app)
Expand Down

0 comments on commit 216acf7

Please sign in to comment.