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

23 lines
608 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.119.0"
HUGO_ENABLEGITINFO = "true"
2023-11-16 08:37:45 +00:00
NODE_VERSION = "21.1.0"
[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