diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-07-05 22:06:58 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-05 22:06:58 +0200 |
| commit | fea042695429771c6dbff0dd04aa3799a7e9dae2 (patch) | |
| tree | 3462e3a93179b8bc1fac29fa8105d844993d11da | |
| parent | 6a726847942e77fa671c27261d19dfa59bb9df3c (diff) | |
| parent | 256c3d918906fbc8a47acdea98225a2d5750368b (diff) | |
| download | gohugo-theme-ed-fea042695429771c6dbff0dd04aa3799a7e9dae2.tar.gz | |
Merge pull request #9 from sergeyklay/feature/improve-netlify-config
Cleanup netlify config
| -rw-r--r-- | netlify.toml | 10 |
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. |
