-
Notifications
You must be signed in to change notification settings - Fork 86
[Bug]: Homepage ignores the headers set in next.config.js
when deployed to Netlify
#1346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I tried to remove the |
next.config.js
won't be set when deployed to Netlifynext.config.js
ignored when deployed to Netlify
The issue here is |
I tried |
next.config.js
ignored when deployed to Netlifynext.config.js
when deployed to Netlify
Hi @nickytonline looks like the work to fix the bug is done, but we are waiting on docs and some testing to complete before we can close this? is that accurate? |
Hi @bhavana-netlify, messaged you on Slack. This should be getting merged today. |
@nickytonline The problem still exists on the latest version |
@meness, do you have a repository I can pull down to see why you may be having the issue still? We have tests that check that it's working, so maybe there is an edge case we missed. |
Summary
I set some headers in
next.config.js
as it's recommended on Next.js docs. You also mentioned the version 4 of this cool plugin has full support of Next.js headers, rewrites, and redirects on the release page, so I expect all the headers to be set, but It didn't happen for me. Netlify says this plugin is used and everything else works fine. Also, I tried settingNODE_ENV=production
environment and redeploying, but got no luck.Steps to reproduce
next.config.js
A link to a reproduction repository
No response
Plugin version
4.7.0
More information about your build
netlify.toml
)What OS are you using?
Windows
Your netlify.toml file
`netlify.toml`
Your public/_redirects file
`_redirects`
# Paste content of your `_redirects` file here
Your
next.config.js
file`next.config.js`
Builds logs (or link to your logs)
Build logs
Function logs
Function logs
.next JSON files
generated .next JSON files
The text was updated successfully, but these errors were encountered: