fix: netlify build configuration

This commit is contained in:
Bharat Singh Bhadwal 2025-04-19 18:03:25 +05:30
parent f619e451e0
commit 4a8eae5099

View File

@ -6,16 +6,10 @@
# HUGO_THEME = "repo" # HUGO_THEME = "repo"
[context.production] [context.production]
command = "hugo --gc --themesDir ../.. -b ${URL}" command = "hugo --gc --minify -b ${URL}"
[context.production.environment] [context.production.environment]
HUGO_ENV = "production" HUGO_ENV = "production"
[context.branch-deploy]
command = "hugo --gc --themesDir ../.. -b ${DEPLOY_PRIME_URL}"
[context.deploy-preview]
command = "hugo --gc --themesDir ../.. -b ${DEPLOY_PRIME_URL}"
[[plugins]] [[plugins]]
package = "netlify-plugin-hugo-cache-resources" package = "netlify-plugin-hugo-cache-resources"