-
Notifications
You must be signed in to change notification settings - Fork 56
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
fix(core): do not create empty header entries in routeRules #539
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@vejja I tried to make a build of this branch locally (
Am I missing something? |
I think you are building the playground and hitting the prerenderedHeaders hook. Strange thing that it couldn't write to ./.nuxt/server.headers... |
@vejja Yes, I did
It could be something due to the environment. |
@vejja Nice! Thank you |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small suggestion, apart from that ready to be merged :)
Co-authored-by: Jakub Andrzejewski <jakub.andrzejewski.dev@gmail.com>
Types of changes
Description
Fixes #538
The
getHeadersApplicableToAllRessources
was previously returning an empty object{}
when no eligible entry was found, which resulted in an emptyheaders: {}
entry in the routeRules registry.This could trigger a deployment failure in some Nitro presets (e.g. Vercel).
This PR ensures that no
headers
entry is created in the corresponding routeRule in that case, fixing the bug described in #538.Checklist: