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
Hey! Working on writing some middleware functions and I suddenly started getting TypeError: Immutable
After some detective work, I found out it's because of the above 3 lines that try to delete these 3 headers when doing a redirection. When I delete these 3 lines locally, everything works as expected. Any idea what these 3 do or why this is happening?
I also understand this hasn't been changed in quite some time, and so it might be something else that's causing this to happen under the hood, I just don't understand it enough and some guidance would be amazing.
I'm on vercel cli 28.4.8.
The text was updated successfully, but these errors were encountered:
edge-runtime/packages/runtime/src/edge-runtime.ts
Line 155 in 803cc4f
Hey! Working on writing some middleware functions and I suddenly started getting
TypeError: Immutable
After some detective work, I found out it's because of the above 3 lines that try to delete these 3 headers when doing a redirection. When I delete these 3 lines locally, everything works as expected. Any idea what these 3 do or why this is happening?
I also understand this hasn't been changed in quite some time, and so it might be something else that's causing this to happen under the hood, I just don't understand it enough and some guidance would be amazing.
I'm on vercel cli 28.4.8.
The text was updated successfully, but these errors were encountered: