netlify.toml 811 B

1234567891011121314151617181920212223242526
  1. [build]
  2. publish = "exampleSite/public"
  3. [build.environment]
  4. HUGO_VERSION = "0.87.0"
  5. HUGO_THEME = "repo"
  6. [context.production]
  7. command = "cd exampleSite && hugo --gc --themesDir ../.. -b ${URL}"
  8. [context.production.environment]
  9. HUGO_ENV = "production"
  10. [context.branch-deploy]
  11. command = "cd exampleSite && hugo --gc --themesDir ../.. -b ${DEPLOY_PRIME_URL}"
  12. [context.deploy-preview]
  13. command = "cd exampleSite && hugo --gc --themesDir ../.. -b ${DEPLOY_PRIME_URL}"
  14. [[plugins]]
  15. package = "netlify-plugin-hugo-cache-resources"
  16. [plugins.inputs]
  17. # If it should show more verbose logs (optional, default = true)
  18. debug = true
  19. # Relative path to source directory in case you use Hugo's "--s" option
  20. srcdir = "exampleSite"