Fix site URL on branch deployments
Alan Pearce alan@alanpearce.eu
Sat, 14 Nov 2020 21:28:34 +0100
1 files changed, 6 insertions(+), 0 deletions(-)
jump to
M netlify.toml → netlify.toml
@@ -4,6 +4,12 @@ command = "zola build" [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"