From e9d45e6161eef85c4e0fa7486371c19c98da1d51 Mon Sep 17 00:00:00 2001 From: weru <onewesh@gmail.com> Date: Thu, 10 Sep 2020 23:29:57 +0000 Subject: [PATCH] restore netlify script --- exampleSite/netlify.toml | 29 ++++++++++++++++++++++++----- 1 files changed, 24 insertions(+), 5 deletions(-) diff --git a/exampleSite/netlify.toml b/exampleSite/netlify.toml index ff64f31..80a184c 100644 --- a/exampleSite/netlify.toml +++ b/exampleSite/netlify.toml @@ -1,11 +1,30 @@ [build] -base = "exampleSite" # remove or uncomment line if your content is at the root of your repo. While you're at it, uncomment line 5 and comment line 6. publish = "public" - -# command = "hugo --gc --minify" -command = "hugo --gc --minify --themesDir /opt/build/" +command = "hugo --gc --minify" [context.production.environment] HUGO_VERSION = "0.74.3" HUGO_ENV = "production" -HUGO_ENABLEGITINFO = "true" \ No newline at end of file +HUGO_ENABLEGITINFO = "true" + +[context.split1] +command = "hugo --gc --minify --enableGitInfo" + +[context.split1.environment] +HUGO_VERSION = "0.74.3" +HUGO_ENV = "production" + +[context.deploy-preview] +command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL" + +[context.deploy-preview.environment] +HUGO_VERSION = "0.74.3" + +[context.branch-deploy] +command = "hugo --gc --minify -b $DEPLOY_PRIME_URL" + +[context.branch-deploy.environment] +HUGO_VERSION = "0.74.3" + +[context.next.environment] +HUGO_ENABLEGITINFO = "true" -- Gitblit v1.10.0