Toml Authentication Header Context

Is it possible to add an authentication header for specific contexts only (such as staging environment)?

Example:

[context.production-split]
  command = "npm i -g purgecss; bundle exec jekyll build --config _config_production.yml"
[context.staging-split]
  command = "npm i -g purgecss; bundle exec jekyll build --config _config_staging.yml"
  [[headers]]
    for = "/*"
    [headers.values]
      Basic-Auth = "login:somepassword"
[build.processing]
  skip_processing = false
[build.processing.css]
  bundle = true
  minify = true
[build.processing.js]
  bundle = true
  minify = true
[build.processing.html]
  pretty_urls = true
[build.processing.images]
  compress = false

Nevermind, I found this article that does what I need.

1 Like

Glad you found everything you need! :netliconfetti: