You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know that a _headers file can be placed in the /public dir, but is there a way that a netlify.toml file can also be used? The netlify docs for using custom headers state that:
I think the toml format is also a bit more readable. I tried putting it at the root and in the public and when I run npm run build, I notice that the dist/_headers does not contain the headers that were specified in the toml file
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I know that a
_headers
file can be placed in the/public
dir, but is there a way that anetlify.toml
file can also be used? The netlify docs for using custom headers state that:I think the toml format is also a bit more readable. I tried putting it at the root and in the public and when I run
npm run build
, I notice that thedist/_headers
does not contain the headers that were specified in the toml fileBeta Was this translation helpful? Give feedback.
All reactions