Add netlifyConfig.headers
#2890
Labels
proj/func-config-api
type: feature
code contributing to the implementation of a feature and/or user facing functionality
Plugin authors should be able to access the site's headers (set either in
netlify.toml
or in_redirects
) using thenetlifyConfig.headers
argument.This is a requirement for #1193, since we cannot make
netlifyConfig.headers
mutable if that property does not exist.Additionally, this property should be mutable.
Most of the logic in
@netlify/config
and@netlify/build
(including detecting whether the config file was added by the build command, or whether to remove the_headers
file at the end of the build) can be copied fromredirects
.The text was updated successfully, but these errors were encountered: