From 016de9b412e420aa62498b140ea54325158ade68 Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Tue, 19 Jun 2018 13:40:23 +0200
Subject: [PATCH] [web] Fix baseURL and bump hugo version on netlify.

---
 netlify.toml | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/netlify.toml b/netlify.toml
index df4bdd877b2..50759104f6f 100644
--- a/netlify.toml
+++ b/netlify.toml
@@ -2,9 +2,13 @@
 [build]
   base    = "web"
   publish = "web/public"
-  command = "git lfs fetch && yarn --ignore-engines --ignore-optional --non-interactive && yarn prod"
+  command = """
+    git lfs fetch
+    yarn --ignore-engines --ignore-optional --non-interactive &&
+    node_modules/.bin/webpack -p --mode=production &&
+    hugo -b $DEPLOY_PRIME_URL"""
 
 [context.production.environment]
-  HUGO_VERSION = "0.41"
+  HUGO_VERSION = "0.42.1"
 [context.deploy-preview.environment]
-  HUGO_VERSION = "0.41"
+  HUGO_VERSION = "0.42.1"
-- 
GitLab