From 7f075d51e66c3851e6ae48954bc6451c7a9dd23d Mon Sep 17 00:00:00 2001 From: jkpe <16779171+jkpe@users.noreply.github.com> Date: Sun, 19 Jun 2022 18:59:35 +0100 Subject: [PATCH] fix Netlify preview deployments Netlify uses an old version of Hugo (0.8x) unless you tell it to use something newer. 0.8x does not support congo as a module. --- exampleSite/content/docs/hosting-deployment/index.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/exampleSite/content/docs/hosting-deployment/index.md b/exampleSite/content/docs/hosting-deployment/index.md index 8edcbb6d..cc38643f 100644 --- a/exampleSite/content/docs/hosting-deployment/index.md +++ b/exampleSite/content/docs/hosting-deployment/index.md @@ -100,6 +100,9 @@ Then in the root of your site repository, create a `netlify.toml` file: [context.production.environment] HUGO_VERSION = "0.100.2" HUGO_ENV = "production" + +[context.deploy-preview.environment] + HUGO_VERSION = "0.100.2" ``` 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`.