Skip to content

Commit 4b29bd5

Browse files
committed
fix: update HTTPS server creation to use app instance for middleware
1 parent f7c341a commit 4b29bd5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ if (process.env.NODE_ENV === 'production') {
5151
https.createServer({
5252
key: fs.readFileSync(process.env.SSL_KEY_PATH),
5353
cert: fs.readFileSync(process.env.SSL_CERT_PATH)
54-
}).listen(process.env.HTTPS_PORT, () => {
54+
}, app).listen(process.env.HTTPS_PORT, () => {
5555
console.log(`API is running on: http://localhost:${process.env.HTTPS_PORT}`);
5656
});
5757
} else {

0 commit comments

Comments
 (0)