From bdf096231d054f4ac264666015bf86e672e012e4 Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Fri, 17 Jun 2022 10:46:01 +1000 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Add=20Netlify=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- netlify.toml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 netlify.toml diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 0000000..e930f64 --- /dev/null +++ b/netlify.toml @@ -0,0 +1,24 @@ +[build] + command = "cd exampleSite && hugo --gc --minify -D -b $URL" + publish = "exampleSite/public" + +[build.environment] +HUGO_THEMESDIR = "../.." +HUGO_THEME = "repo" +TZ = "Australia/Melbourne" + +[context.production.environment] +HUGO_VERSION = "0.100.2" +HUGO_ENV = "production" + +[context.deploy-preview] +command = "cd exampleSite && hugo --gc --minify -D -b $DEPLOY_PRIME_URL" + +[context.deploy-preview.environment] +HUGO_VERSION = "0.100.2" + +[context.branch-deploy] +command = "cd exampleSite && hugo --gc --minify -D -b $DEPLOY_PRIME_URL" + +[context.branch-deploy.environment] +HUGO_VERSION = "0.100.2"