Permalink
Browse files

httpでアクセスされた際の転送先URLを環境ごとに切り分け

  • Loading branch information...
1 parent b371575 commit 0194da1c896546ed74ba5de73e58a5b1c416fdd2 @nsyee00 nsyee00 committed Nov 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/middleware/index.js
View
2 lib/middleware/index.js
@@ -12,7 +12,7 @@ exports.ssl = function(req, res, next) {
if (host.indexOf(':') > -1) {
host = host.split(':')[0];
}
- if (process.env.production) {
+ if (process.env.NODE_ENV === 'production') {
return res.redirect('https://'+host);
}
else {

0 comments on commit 0194da1

Please sign in to comment.