[WAYANG-18][FIX] redirection only in production mode
diff --git a/_includes/head.html b/_includes/head.html
index cd1b6b3..010f2bd 100644
--- a/_includes/head.html
+++ b/_includes/head.html
@@ -21,14 +21,14 @@
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
 
-    {% comment %}
+    {% if jekyll.environment == "production" %}
     <meta http-equiv="Refresh" content="0;URL=https://wayang.apache.org{{page.url}}" />
     <script type="text/javascript">
         if(window.location.protocol != 'https:') {
             location.href =   location.href.replace("http://", "https://");
         }
     </script>
-    {% endcomment %}
+    {% endif %}
 
 
     <title>Apache Wayang - {{page.title}}</title>
diff --git a/script/cibuild b/script/cibuild
index d018850..cf44d84 100644
--- a/script/cibuild
+++ b/script/cibuild
@@ -23,6 +23,8 @@
 BASE_URL="/"
 BRANCH_PAGE=asf-site
 
+export JEKYLL_ENV="production"
+
 echo "url: \"${URL}\"" > _config.yml.tmp
 echo "baseurl: \"${BASE_URL}\"" >> _config.yml.tmp
 cat _config.yml | grep -v "url:" >> _config.yml.tmp