diff --git a/config.yaml b/config.yaml index a968de83..592af54d 100644 --- a/config.yaml +++ b/config.yaml @@ -14,7 +14,7 @@ ignoreFiles: - README.md build: - writeStats: true + # writeStats: true markup: goldmark: diff --git a/netlify.toml b/netlify.toml index f951d413..99191b25 100644 --- a/netlify.toml +++ b/netlify.toml @@ -14,8 +14,11 @@ from = "/docs/*" to = "/:splat" status = 302 +[context.deploy-preview] + command = "sed -i 's/# writeStats: true/writeStats: true/g' config.yaml && cat config.yaml && hugo --minify" + [context.production] - command = "hugo --minify " + command = "sed -i 's/# writeStats: true/writeStats: true/g' config.yaml && && hugo --minify" # Use [dev] to set configuration overrides for local # development environments run using Netlify Dev - except