From 316bfe2d8f9822b1bef1dd61e59bc9de8b30e330 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Sat, 1 Jun 2019 00:39:01 +0100 Subject: [PATCH] fix(demo): BaseURL --- netlify.toml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/netlify.toml b/netlify.toml index 6e363d03..67f2d50c 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,5 +1,5 @@ [build] - command = "hugo --gc --minify -b $DEPLOY_PRIME_URL --themesDir ../../" + command = "hugo --gc --minify -b $URL --themesDir ../../" base = "exampleSite" publish = "exampleSite/public" @@ -10,3 +10,9 @@ [context.production.environment] HUGO_ENV = "production" + +[context.deploy-preview] + command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL --themesDir ../../" + +[context.branch-deploy] + command = "hugo --gc --minify -b $DEPLOY_PRIME_URL --themesDir ../../"