diff --git a/netlify.toml b/netlify.toml
index df4bdd877b22d251a574520600b6e8aac04a1881..50759104f6fce6aac285e987971acb41019582bb 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"