netlify.toml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. [build]
  2. publish = "public"
  3. command = "hugo --gc --minify -d public;"
  4. [context.production.environment]
  5. HUGO_VERSION = "0.112.0"
  6. [context.branch-deploy]
  7. command = "hugo --minify --gc -d public -b $DEPLOY_PRIME_URL"
  8. [context.branch-deploy.environment]
  9. HUGO_VERSION = "0.112.0"
  10. [context.deploy-preview]
  11. command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"
  12. [context.deploy-preview.environment]
  13. HUGO_VERSION = "0.112.0"
  14. [[headers]]
  15. for = "/*.jpg"
  16. [headers.values]
  17. Cache-Control = "public, max-age=604800"
  18. [[headers]]
  19. for = "/*.png"
  20. [headers.values]
  21. Cache-Control = "public, max-age=604800"
  22. [[headers]]
  23. for = "/*.css"
  24. [headers.values]
  25. Cache-Control = "public, max-age=604800"
  26. [[headers]]
  27. for = "/*.js"
  28. [headers.values]
  29. Cache-Control = "public, max-age=604800"
  30. [[headers]]
  31. for = "/webfonts/*"
  32. [headers.values]
  33. Cache-Control = "public, max-age=604800"
  34. [[headers]]
  35. for = "/*"
  36. [headers.values]
  37. X-Frame-Options = "DENY"
  38. X-XSS-Protection = "1; mode=block"
  39. X-Content-Type-Options = "nosniff"
  40. Referrer-Policy = "no-referrer"
  41. Content-Security-Policy = "script-src 'self' 'unsafe-inline'"