Advertisement
Guest User

Netlify.TOML

a guest
Nov 2nd, 2020
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. [build]
  2. publish = "public"
  3. command = "hugo --gc --minify"
  4.  
  5. [context.production.environment]
  6. HUGO_VERSION = "0.75.1"
  7. HUGO_ENV = "production"
  8. HUGO_ENABLEGITINFO = "true"
  9.  
  10. [context.split1]
  11. command = "hugo --gc --minify --enableGitInfo"
  12.  
  13. [context.split1.environment]
  14. HUGO_VERSION = "0.75.1"
  15. HUGO_ENV = "production"
  16.  
  17. [context.deploy-preview]
  18. command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"
  19.  
  20. [context.deploy-preview.environment]
  21. HUGO_VERSION = "0.75.1"
  22.  
  23. [context.branch-deploy]
  24. command = "hugo --gc --minify -b blog.example.com"
  25.  
  26. [context.branch-deploy.environment]
  27. HUGO_VERSION = "0.75.1"
  28.  
  29. [context.next.environment]
  30. HUGO_ENABLEGITINFO = "true"
  31.  
  32. # The following redirect is intended for use with most SPAs that handle
  33. # routing internally.
  34. [[redirects]]
  35. from = "/*"
  36. to = "/index.html"
  37. status = 200
  38.  
  39. [[headers]]
  40. # Define which paths this specific [[headers]] block will cover.
  41. for = "/*"
  42. [headers.values]
  43. Access-Control-Allow-Origin = "*"
  44.  
  45.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement