about summary refs log tree commit diff stats
path: root/netlify.toml
diff options
context:
space:
mode:
authorAlan Pearce2020-11-14 21:28:34 +0100
committerAlan Pearce2020-11-14 21:52:50 +0100
commited02c2bb896a74896fac0191fe40298a2143ad40 (patch)
tree789840c6b5d85f3f77ebb452e2dc0da7e111d387 /netlify.toml
parentfa837f2e05dd12b6d1ea3c5bb7aac7c86fa9ff1a (diff)
downloadwebsite-ed02c2bb896a74896fac0191fe40298a2143ad40.tar.lz
website-ed02c2bb896a74896fac0191fe40298a2143ad40.tar.zst
website-ed02c2bb896a74896fac0191fe40298a2143ad40.zip
Fix site URL on branch deployments
Diffstat (limited to 'netlify.toml')
-rw-r--r--netlify.toml6
1 files changed, 6 insertions, 0 deletions
diff --git a/netlify.toml b/netlify.toml
index bf33892..119ae98 100644
--- a/netlify.toml
+++ b/netlify.toml
@@ -4,6 +4,12 @@
   [build.environment]
     ZOLA_VERSION = "0.12.2"
 
+[context.deploy-preview]
+command = "zola build --base-url $DEPLOY_PRIME_URL"
+
+[context.branch-deploy]
+command = "zola build --base-url $DEPLOY_PRIME_URL"
+
 [[redirects]]
   from = "https://alanpearceeu.netlify.com/*"
   to = "https://www.alanpearce.eu/:splat"