gatsby-adapter-netlify
not generating headers for redirects
#38538
Labels
status: triage needed
Issue or pull request that need to be triaged and assigned to a reviewer
type: bug
An issue or pull request relating to a bug in Gatsby
Preliminary Checks
Description
The
gatsby-adapter-netlify
is not generating HTTP headers defined ingatsby-config
if the route is a redirect route.Redirect routes support headers as defined in IRedirectRoute.
Based on this comment this appears to be functionality that is not yet implemented but with no "stock" way to "opt-out" of the netlify adapter when building and running on Netlify, this should likely be addressed sooner than later.
Reproduction Link
https://codesandbox.io/p/sandbox/gatsby-adapter-netlify-redirect-headers-missing-82qlk9?file=%2Fpublic%2F_headers
Steps to Reproduce
public
folder and open _headers file/testpage
, however other headers fromgatsby-config
are presentTo re-create the scenario:
clean
taskbuild
task_headers
file inpublic
folderExpected Result
A
X-PageName
header should be defined in _headers for the route /testpageActual Result
The
X-PageName
header for/testpage
is not in the_headers
file.Environment
Config Flags
N/A
The text was updated successfully, but these errors were encountered: