From 63c4f87bda139b49b41f13a2816666ae1e8fcdf9 Mon Sep 17 00:00:00 2001
From: Bogdan Cochior <bogdan.cochior@thinslices.com>
Date: Thu, 2 Aug 2018 15:08:06 +0300
Subject: [PATCH] ci(production):setup for production :wq

---
 packages/xpub-faraday/app/index-production.html    | 14 +++++++++++---
 packages/xpub-faraday/config/default.js            | 10 ++--------
 .../webpack/webpack.production.config.js           |  3 ++-
 3 files changed, 15 insertions(+), 12 deletions(-)

diff --git a/packages/xpub-faraday/app/index-production.html b/packages/xpub-faraday/app/index-production.html
index c4113cccd..9408ded17 100644
--- a/packages/xpub-faraday/app/index-production.html
+++ b/packages/xpub-faraday/app/index-production.html
@@ -1,10 +1,18 @@
 <!DOCTYPE html>
 <html>
+
 <head>
+    <!--
+        Build time: <%= htmlWebpackPlugin.options.buildTime %>
+    -->
     <meta charset=utf-8>
-    <title><%= htmlWebpackPlugin.options.title %></title>
+    <title>
+        <%= htmlWebpackPlugin.options.title %>
+    </title>
 </head>
+
 <body>
-<div id="root"></div>
+    <div id="root"></div>
 </body>
-</html>
+
+</html>
\ No newline at end of file
diff --git a/packages/xpub-faraday/config/default.js b/packages/xpub-faraday/config/default.js
index 3d84183a8..0e8568e0d 100644
--- a/packages/xpub-faraday/config/default.js
+++ b/packages/xpub-faraday/config/default.js
@@ -46,7 +46,7 @@ module.exports = {
     API_ENDPOINT: '/api',
     baseUrl: process.env.CLIENT_BASE_URL || 'http://localhost:3000',
     'login-redirect': '/',
-    'redux-log': true,
+    'redux-log': process.env.NODE_ENV === 'development',
     theme: process.env.PUBSWEET_THEME,
   },
   orcid: {
@@ -114,13 +114,7 @@ module.exports = {
     path: `${__dirname}/mailer`,
     editorialAssistant: 'hindawi@thinslices.com',
   },
-  publicKeys: [
-    'pubsweet-client',
-    'authsome',
-    'validations',
-    'pubsweet-component-aws-s3',
-    'pubsweet-component-aws-ses',
-  ],
+  publicKeys: ['pubsweet-client', 'authsome', 'validations'],
   statuses: {
     draft: {
       importance: 1,
diff --git a/packages/xpub-faraday/webpack/webpack.production.config.js b/packages/xpub-faraday/webpack/webpack.production.config.js
index be12bca47..60437cd2d 100644
--- a/packages/xpub-faraday/webpack/webpack.production.config.js
+++ b/packages/xpub-faraday/webpack/webpack.production.config.js
@@ -36,7 +36,8 @@ module.exports = [
         root: path.join(__dirname, '..', '_build'),
       }),
       new HtmlWebpackPlugin({
-        title: 'xpub',
+        title: 'Faraday',
+        buildTime: new Date().toString(),
         template: '../app/index-production.html',
         inject: 'body',
       }),
-- 
GitLab