diff options
author | weru <onewesh@gmail.com> | 2020-08-30 14:14:00 +0300 |
---|---|---|
committer | weru <onewesh@gmail.com> | 2020-08-30 14:14:00 +0300 |
commit | 3e4a0b7b19ebc9fc126cde1ad8fd4b63fb2020bd (patch) | |
tree | ec71d6824d45d1df3f7bab2982f6adf723fe7487 | |
parent | 2701c8161193c3ad80ede92f469c2e428f33a758 (diff) |
add a netlify config script
-rw-r--r-- | exampleSite/netlify.toml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/exampleSite/netlify.toml b/exampleSite/netlify.toml new file mode 100644 index 0000000..80a184c --- /dev/null +++ b/exampleSite/netlify.toml @@ -0,0 +1,30 @@ +[build] +publish = "public" +command = "hugo --gc --minify" + +[context.production.environment] +HUGO_VERSION = "0.74.3" +HUGO_ENV = "production" +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" |