[build]
  publish = "."

# Explicitly disable all build plugins for this static site
[build.environment]
  NETLIFY_PLUGIN_CLOUDINARY_DISABLED = "true"

# Disable image optimization at build level  
[[plugins]]
  package = "netlify-plugin-cloudinary"
  [plugins.inputs]
    cloudName = ""
    uploadPreset = ""
    folder = ""
    maxSize = 0
    
[[headers]]
  for = "/assets/images/*"
  [headers.values]
    Cache-Control = "public, max-age=86400"

# Master site archive — always served as a download
[[headers]]
  for = "/assets/downloads/*"
  [headers.values]
    Content-Type = "application/zip"
    Content-Disposition = "attachment"
    Cache-Control = "public, max-age=3600"

[[redirects]]
  from = "/learn"
  to = "/learn.html"
  status = 200

[[redirects]]
  from = "/training"
  to = "/training.html"
  status = 200

[[redirects]]
  from = "/knowledge"
  to = "/knowledge.html"
  status = 200

[[redirects]]
  from = "/replay"
  to = "/replay.html"
  status = 200

[[redirects]]
  from = "/about"
  to = "/about.html"
  status = 200

[[redirects]]
  from = "/contact"
  to = "/contact.html"
  status = 200

[[redirects]]
  from = "/download"
  to = "/download.html"
  status = 200

[[redirects]]
  from = "/privacy"
  to = "/privacy.html"
  status = 200

[[redirects]]
  from = "/terms"
  to = "/terms.html"
  status = 200

[[redirects]]
  from = "/master.zip"
  to = "/assets/downloads/bank-shot-buddy-master.zip"
  status = 200

[[redirects]]
  from = "/*"
  to = "/404.html"
  status = 404
