From 12c05c3afd3b7be1e0e5375413bece13109192ae Mon Sep 17 00:00:00 2001 From: zjedi Date: Thu, 6 Apr 2023 20:51:50 +0200 Subject: [PATCH] Create netlify.toml --- netlify.toml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 netlify.toml diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 0000000..90a0360 --- /dev/null +++ b/netlify.toml @@ -0,0 +1,26 @@ +[build] + publish = "exampleSite/public" + +[build.environment] + HUGO_VERSION = "0.100.2" + HUGO_THEME = "repo" + +[context.production] + command = "cd exampleSite && hugo --gc --themesDir ../.. -b ${URL}" + [context.production.environment] + HUGO_ENV = "production" + +[context.branch-deploy] + command = "cd exampleSite && hugo --gc --themesDir ../.. -b ${DEPLOY_PRIME_URL}" + +[context.deploy-preview] + command = "cd exampleSite && hugo --gc --themesDir ../.. -b ${DEPLOY_PRIME_URL}" + +[[plugins]] + package = "netlify-plugin-hugo-cache-resources" + + [plugins.inputs] + # If it should show more verbose logs (optional, default = true) + debug = true + # Relative path to source directory in case you use Hugo's "--s" option + srcdir = "exampleSite"