From 26d1f45429371be1b8d67bf6f4e148b4b8cc0e22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Thu, 8 Feb 2018 09:12:22 +0100 Subject: [PATCH] Fix baseURL in Netlify deploy previews --- netlify.toml | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/netlify.toml b/netlify.toml index bb8dcd390..7ecd9ebc4 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,18 +1,23 @@ [build] - publish = "public" - command = "hugo" +publish = "public" +command = "hugo" [context.production.environment] - HUGO_VERSION = "0.36" - HUGO_ENV = "production" - HUGO_ENABLEGITINFO = "true" +HUGO_VERSION = "0.36" +HUGO_ENV = "production" +HUGO_ENABLEGITINFO = "true" + +[context.deploy-preview] +command = "hugo -b $DEPLOY_PRIME_URL" [context.deploy-preview.environment] - HUGO_VERSION = "0.36" +HUGO_VERSION = "0.36" + +[context.branch-deploy] +command = "hugo -b $DEPLOY_PRIME_URL" [context.branch-deploy.environment] - HUGO_VERSION = "0.36" +HUGO_VERSION = "0.36" [context.next.environment] - HUGO_BASEURL = "https://next--gohugoio.netlify.com/" - HUGO_ENABLEGITINFO = "true" \ No newline at end of file +HUGO_ENABLEGITINFO = "true"