From 1e90d7f077fef41fddc45628cb4802337d2c561f Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Sun, 10 Sep 2023 10:48:20 +1000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Remove=20redundant=20`HUGO=5FVER?= =?UTF-8?q?SION`=20var=20in=20Netlify=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- exampleSite/content/docs/hosting-deployment/index.ja.md | 5 +---- exampleSite/content/docs/hosting-deployment/index.md | 5 +---- netlify.toml | 8 +------- 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/exampleSite/content/docs/hosting-deployment/index.ja.md b/exampleSite/content/docs/hosting-deployment/index.ja.md index 7f126073..6f55eacc 100644 --- a/exampleSite/content/docs/hosting-deployment/index.ja.md +++ b/exampleSite/content/docs/hosting-deployment/index.ja.md @@ -95,16 +95,13 @@ jobs: publish = "public" [build.environment] + HUGO_VERSION = "0.118.2" NODE_ENV = "production" GO_VERSION = "1.20" TZ = "UTC" # Set to preferred timezone [context.production.environment] - HUGO_VERSION = "0.112.7" HUGO_ENV = "production" - -[context.deploy-preview.environment] - HUGO_VERSION = "0.112.7" ``` 上の例は、CongoをHugoモジュールとしてデプロイすることを想定しています。別の方法でテーマをインストールした場合は、ビルドコマンドを `hugo --gc --minify -b $URL` に変更してください。 diff --git a/exampleSite/content/docs/hosting-deployment/index.md b/exampleSite/content/docs/hosting-deployment/index.md index d27f5794..51da0ecb 100644 --- a/exampleSite/content/docs/hosting-deployment/index.md +++ b/exampleSite/content/docs/hosting-deployment/index.md @@ -95,16 +95,13 @@ Then in the root of your site repository, create a `netlify.toml` file: publish = "public" [build.environment] + HUGO_VERSION = "0.118.2" NODE_ENV = "production" GO_VERSION = "1.20" TZ = "UTC" # Set to preferred timezone [context.production.environment] - HUGO_VERSION = "0.112.7" HUGO_ENV = "production" - -[context.deploy-preview.environment] - HUGO_VERSION = "0.112.7" ``` This configuration assumes you are deploying Congo as a Hugo module. If you have installed the theme using another method, change the build command to simply `hugo --gc --minify -b $URL`. diff --git a/netlify.toml b/netlify.toml index cadf7c5c..881b6c9b 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,22 +3,16 @@ publish = "exampleSite/public" [build.environment] +HUGO_VERSION = "0.118.2" HUGO_THEMESDIR = "../.." HUGO_THEME = "repo" TZ = "Australia/Melbourne" [context.production.environment] -HUGO_VERSION = "0.112.7" HUGO_ENV = "production" [context.deploy-preview] command = "cd exampleSite && hugo --gc --minify -D -b $DEPLOY_PRIME_URL" -[context.deploy-preview.environment] -HUGO_VERSION = "0.112.7" - [context.branch-deploy] command = "cd exampleSite && hugo --gc --minify -D -b $DEPLOY_PRIME_URL" - -[context.branch-deploy.environment] -HUGO_VERSION = "0.112.7"