Skip to content

Commit aa571f5

Browse files
committed
redir
1 parent fed6124 commit aa571f5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ app.use('/', express.static(__dirname));
77

88
// use HTTPS(true) in case you are behind a load balancer (e.g. Heroku)
99
if (process.env.NODE_ENV === 'production') {
10+
console.log('redirecting to ssl');
1011
app.use(enforce.HTTPS());
1112
app.use(enforce.HTTPS({ trustProtoHeader: true }))
1213
}

0 commit comments

Comments
 (0)