Closed keerthivasan-r closed 4 years ago
I think i didn't tell it clearly in the previous PR. It is not just about the checking of server.ssl
in the boolean expression. The problem is the data that gets assigned back to the property. In the below script, the value of USE_HTTPS gets the value of server.ssl.cert instead of server.ssl. That creates the problem, when it is used by helmet config
this.env = { IS_PRODUCTION: !process.env.NODE_ENV || process.env.NODE_ENV === 'production', USE_HTTPS: server.ssl && server.ssl.key && server.ssl.cert, }; Hope you get my point now!
This PR fixes #208