#TypeError: immutable at _Headers.set

1 messages · Page 1 of 1 (latest)

harsh frigate
#

Hey folks, I upgraded our project to the latest versions of Astro including v10 of the Cloudflare adapter this morning. Seems that whenever I make a chanve to a React component, HMR ends up with this error. If I refresh the page, everything is cool. Has anyhone else seen this yet?

#

Oh you know what

#

It hates this code in my .astro page return fetch(new URL("/404", Astro.url))

#

Meant as a sort of "rewrite" to the 404 page instead of redirecting

flat crane
#

do you see this only with the cloudflare adapter?

#

v9 doesnt error in dev, other adapters dont error in dev?