2023-10-24 18:46:21 +01:00
|
|
|
[build]
|
2023-11-16 08:25:16 +00:00
|
|
|
command = "hugo --gc --minify -b $URL && npx pagefind --source 'public'"
|
2023-10-24 18:46:21 +01:00
|
|
|
publish = "public"
|
|
|
|
|
|
|
|
[build.environment]
|
2024-10-12 18:55:17 +01:00
|
|
|
HUGO_VERSION = "0.135.0"
|
2023-12-29 23:38:24 +00:00
|
|
|
GO_VERSION = "1.21.5"
|
2023-11-16 08:37:45 +00:00
|
|
|
NODE_VERSION = "21.1.0"
|
2023-12-29 23:38:24 +00:00
|
|
|
HUGO_ENABLEGITINFO = "true"
|
2023-10-24 18:46:21 +01:00
|
|
|
|
|
|
|
[context.production.environment]
|
|
|
|
HUGO_ENV = "production"
|
|
|
|
|
|
|
|
[context.deploy-preview]
|
2023-11-16 08:25:16 +00:00
|
|
|
command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL && npx pagefind --source 'public'"
|
2023-10-24 18:46:21 +01:00
|
|
|
|
|
|
|
[context.branch-deploy]
|
2023-11-16 08:25:16 +00:00
|
|
|
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL && npx pagefind --source 'public'"
|
2023-10-24 18:46:21 +01:00
|
|
|
|
|
|
|
[[plugins]]
|
|
|
|
package = "netlify-plugin-hugo-cache-resources"
|
|
|
|
[plugins.inputs]
|
|
|
|
debug = true
|