From 005c41b0e45a4e8ec5727a026ad6d9a90908b721 Mon Sep 17 00:00:00 2001 From: Bharat Singh Bhadwal Date: Sat, 19 Apr 2025 18:32:08 +0530 Subject: [PATCH] fix: readding the removed config 1. We have a running build . 2. lets re-add all config entries now --- netlify.toml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/netlify.toml b/netlify.toml index 23c6b9d..55feadd 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,6 +1,25 @@ [build] publish = "public" -command = "hugo" +command = "hugo --gc --minify" [build.environment] HUGO_VERSION = "0.142.0" + +[context.production] +command = "hugo --gc --minify -b https://blog.gearlama.com" +[context.production.environment] +HUGO_ENV = "production" + +[context.deploy-preview] +command = "hugo --gc --minify -b $DEPLOY_PRIME_URL" + +[context.branch-deploy] +command = "hugo --gc --minify -b $DEPLOY_PRIME_URL" + +[[plugins]] +package = "netlify-plugin-hugo-cache-resources" + + [plugins.inputs] + debug = true + srcdir = "." +