hugo-academic-mirror/starters/blog/netlify.toml

24 lines
632 B
TOML
Raw Normal View History

[build]
2023-11-16 08:25:16 +00:00
command = "hugo --gc --minify -b $URL && npx pagefind --source 'public'"
publish = "public"
[build.environment]
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"
[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'"
[context.branch-deploy]
2023-11-16 08:25:16 +00:00
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL && npx pagefind --source 'public'"
[[plugins]]
package = "netlify-plugin-hugo-cache-resources"
[plugins.inputs]
debug = true