summaryrefslogtreecommitdiffstats
path: root/netlify.toml
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-07-05 21:43:03 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-07-05 21:43:03 +0200
commit256c3d918906fbc8a47acdea98225a2d5750368b (patch)
tree3462e3a93179b8bc1fac29fa8105d844993d11da /netlify.toml
parent6a726847942e77fa671c27261d19dfa59bb9df3c (diff)
downloadgohugo-theme-ed-256c3d918906fbc8a47acdea98225a2d5750368b.tar.gz
Cleanup netlify config
Diffstat (limited to 'netlify.toml')
-rw-r--r--netlify.toml10
1 files changed, 4 insertions, 6 deletions
diff --git a/netlify.toml b/netlify.toml
index cb0700e..7083039 100644
--- a/netlify.toml
+++ b/netlify.toml
@@ -8,6 +8,10 @@
# located at the absolute path "root/project/build-output"
publish = 'public'
+[build.environment]
+ HUGO_VERSION = '0.101.0'
+ HUGO_ENABLEGITINFO = 'true'
+
# Production context: all deploys from the Production branch
# set in your site’s Branches settings in the UI will inherit
# these settings. You can define environment variables
@@ -17,9 +21,7 @@
command = 'hugo --enableGitInfo --source=exampleSite --destination ../public'
[context.production.environment]
- HUGO_VERSION = '0.101.0'
HUGO_ENV = 'production'
- HUGO_ENABLEGITINFO = 'true'
HUGO_GOOGLEANALYTICS = 'G-DP9Q137C3X'
# Deploy Preview context: all deploys generated from
@@ -28,9 +30,7 @@
command = 'hugo --enableGitInfo --source=exampleSite --buildDrafts --buildFuture --baseURL ${DEPLOY_PRIME_URL} --destination ../public'
[context.deploy-preview.environment]
- HUGO_VERSION = '0.101.0'
HUGO_ENV = 'development'
- HUGO_ENABLEGITINFO = 'true'
# Branch Deploy context: all deploys that are not from
# a pull/merge request or from the Production branch
@@ -39,9 +39,7 @@
command = 'hugo --enableGitInfo --source=exampleSite --buildDrafts --buildFuture --baseURL ${DEPLOY_PRIME_URL} --destination ../public'
[context.branch-deploy.environment]
- HUGO_VERSION = '0.101.0'
HUGO_ENV = 'development'
- HUGO_ENABLEGITINFO = 'true'
# There are a basic set of standard security headers that every
# website should set to help make your website more secure.