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 ../../"